import * as React from 'react' ; import { Checkbox } from './Parts/Checkbox' ; import { InputText } from './Parts/InputText' ; import { FormItem } from './Parts/FormItem' ; import { Submit } from './Parts/Submit' ; export class FormParts extends React . Component { public static Checkbox = Checkbox ; public static InputText = InputText ; public static FormItem = FormItem ; public static Submit = Submit ; render ( ) { return ( < > { React . Children . map ( this . props . children , ( child , idx ) => { return React . cloneElement ( child as React . ReactElement < any > , { key : idx } ) ; } ) } < />); } }