Skip to content

Commit

Permalink
docs: Simplify setup (rjsf-team#3324)
Browse files Browse the repository at this point in the history
One-line setup is easier
  • Loading branch information
epicfaace authored and shijistar committed Jun 8, 2023
1 parent 3a973e8 commit 7532980
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions docs/index.md
Expand Up @@ -16,19 +16,13 @@ react-jsonschema-form also comes with tools such as `uiSchema` and other form pr

## Installation

First install the dependencies from npm:
First install the dependencies from npm, along with a validator implementation (such as `@rjsf/validator-ajv8`):

```bash
$ npm install @rjsf/core @rjsf/utils --save
$ npm install @rjsf/core @rjsf/utils @rjsf/validator-ajv8 --save
```

As of version 5, you will also need to select and install a validator implementation (such as `@rjsf/validator-ajv8`):

```bash
$ npm install @rjsf/validator-ajv8 --save
````

Then import the dependency as follows:
Then import the dependencies as follows:

```js
import validator from "@rjsf/validator-ajv8";
Expand Down

0 comments on commit 7532980

Please sign in to comment.