November 2018
Beginner
502 pages
10h 22m
English
It's time to start work on our generic Form component:
import * as React from "react";interface IFormProps {}interface IState {}export class Form extends React.Component<IFormProps, IState> { constructor(props: IFormProps) {} public render() {}}
Form is a class-based component because it needs to manage state. We have named the props interface IFormProps because later on we'll need an interface for field props.
export interface IValues { [key: string]: any;}interface IFormProps {Read now
Unlock full access