Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Latest commit

 

History

History
55 lines (39 loc) · 1.13 KB

File metadata and controls

55 lines (39 loc) · 1.13 KB
const indexes = [0, 1, 2, 3];

const fieldsArrayUsage = 
<FieldsArray>
    {indexes.map(index => <div arrayKey={`my-array`} index={Number(index)}>
        
    </div>)}
</FieldsArray>

export a = () =>
<Permanent>
    <Form>
        <TextField name="firstName" initialValue={initialValue}>
            <UppercaseNormalizer />
            <DebounceValidator value={1000} />
            <TextValidator text="John" errorMessage="You ain't John!" />
        </TextField>

        <NumberField name="age" />


        <Converter convert={obj => `${obj.firstName} ${obj.lastName}`}>
            <FieldGroup>
                <TextField name="firstName" />
                <TextField name="lastName" />
            </FieldGroup>
        </Converter>



    </Form>
</Permanent>

const result = {
    firstName: "John",
    age: ""
}
const a = () => {
    const mapStore: any;
    const id = "id";

    const exists = mapStore.exists(id); // false
    const item = mapStore.get(id); // Item<Init>
    const exists2 = mapStore.exists(id); // true

    const item = useMapStoreItem(id);
}