Limenius / liform-react

Generate forms from JSON Schema to use with React (& redux-form)
https://limenius.github.io/liform-react/
MIT License
174 stars 40 forks source link

Custom layout - how to render single field instead of all fields? #46

Open jakub-zawislak opened 6 years ago

jakub-zawislak commented 6 years ago

The example from docs

https://limenius.github.io/liform-react/#/liform-react/examples/change-base-form

{renderField(schema, schema.title, theme || DefaultTheme)}

doesn't work, it always renders all fields at once. Maybe because the schema.title is undefined? I see that there is also a schema.properties.title key, but still doesn't work