From 7532980e17df25a938d86ef0b627e137453f360f Mon Sep 17 00:00:00 2001 From: Ashwin Ramaswami Date: Thu, 29 Dec 2022 03:12:09 -0500 Subject: [PATCH] docs: Simplify setup (#3324) One-line setup is easier --- docs/index.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/docs/index.md b/docs/index.md index 4dba752c6b..524bfa1959 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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";