Skip to content

mson-react issue FormEditor #194

Open
@MedinaGitHub

Description

@MedinaGitHub

Hi ! thanks for the proyect,
react-mson dont work with component: "FormBuilder", =/
https://codesandbox.io/s/mson-collection-zi3kz?file=/src/index.js

My code is like this

`
import Component from "mson-react/lib/component";

const definition = {
name: 'app.FormBuilder',
component: 'FormBuilder',
'fields.form.form.fields.fields.store': {
component: 'LocalStorageStore',
storeName: 'myForm'
}
};

// Render the app
const MyMson = () => (
<Component
definition={definition}
onSubmit={({ component }) => {
alert("submitting " + JSON.stringify(component.getValues()));
}}
/>
);

export default MyMson;`

and i get this error
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions