Skip to content

Commit d6558db

Browse files
committed
Reorder navigation - start at Getting started
1 parent 09ca6f3 commit d6558db

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

packages/react-renderer-demo/src/app/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ const LandingPage = () => {
6868
Data Driven Forms converts JSON form definitions into fully functional React forms.
6969
</Typography>
7070
<div className={classes.getStartedLink}>
71-
<Link href="/renderer/installation">
72-
<a className={classes.getStartedAnchor} href="/renderer/installation">
71+
<Link href="/renderer/get-started">
72+
<a className={classes.getStartedAnchor} href="/renderer/get-started">
7373
<Button variant="outlined" className={classes.getStartedButton}>
7474
Get started
7575
</Button>

packages/react-renderer-demo/src/app/pages/renderer/get-started.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@ import CodeExample from '../../src/components/code-example';
66
<Grid container item>
77
<Grid item xs={12} md={10}>
88

9-
10-
# React form renderer
9+
# Getting started
1110

1211
Data Driven Forms converts JSON form definitions into fully functional React forms.
1312
It uses [React Final Form](https://github.com/final-form/react-final-form) for the form state management.
1413
It is highly recommended to check their documentations first to fully understand how
1514
the [Data Driven Forms](https://github.com/data-driven-forms/react-forms) libraries work.
1615

16+
All you need is to [install](/renderer/installation) the form renderer and choose the component mapper you want ([or create your own](/renderer/component-mapping)).
17+
18+
Import `FormRenderer` from the react-form-renderer. This component takes four required props: FormTemplate, schema, componentMapper and onSubmit. You can read about them [here](/renderer/renderer-api#requiredprops).
19+
20+
You can check the simple example below.
21+
1722
<CodeExample source="components/get-started/get-started" mode="preview" />
1823

1924
</Grid>

packages/react-renderer-demo/src/app/src/components/navigation/documentation-pages.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
export const docs = [
2+
{
3+
component: 'get-started',
4+
linkText: 'Getting started'
5+
},
26
{
37
component: 'installation',
48
linkText: 'Installation'
@@ -7,10 +11,6 @@ export const docs = [
711
component: 'development-setup',
812
linkText: 'Development Setup'
913
},
10-
{
11-
component: 'get-started',
12-
linkText: 'Getting started'
13-
},
1414
{
1515
component: 'component-mapping',
1616
linkText: 'Create component mapper'

0 commit comments

Comments
 (0)