mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
parent
b87cf0d8d5
commit
56ad8443b7
|
@ -135,6 +135,10 @@ For npm:
|
||||||
|
|
||||||
## Usage as a React component
|
## Usage as a React component
|
||||||
|
|
||||||
|
Install peer dependencies required by ReDoc if you don't have them installed already:
|
||||||
|
|
||||||
|
npm i react react-dom mobx@^4.2.0 styled-components
|
||||||
|
|
||||||
Import `RedocStandalone` component from 'redoc' module:
|
Import `RedocStandalone` component from 'redoc' module:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
Loading…
Reference in New Issue
Block a user