We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5b0ae9 commit d603c34Copy full SHA for d603c34
packages/react-renderer-demo/src/components/landing-page-cards.js
@@ -11,14 +11,17 @@ const value = `import React from 'react';
11
import FormRenderer, { componentTypes } from '@data-driven-forms/react-form-renderer';
12
import { formFieldsMapper, layoutMapper } from '@data-driven-forms/pf4-component-mapper';
13
14
-const schema = [{
15
- component: componentTypes.TEXT_FIELD,
16
- name: 'name',
17
- label: 'Your name'
18
-}]
+const schema = {
+ fields: [{
+ component: componentTypes.TEXT_FIELD,
+ name: 'name',
+ label: 'Your name'
19
+ }]
20
+}
21
22
const Form = () => (
23
<FormRenderer
24
+ schema={schema}
25
formFieldsMapper={formFieldsMapper}
26
layoutMapper={layoutMapper}
27
onSubmit={console.log}
0 commit comments