- Run
npm install
||yarn
to install dependencies - You can test by:
yarn dev
to run dev mode, or you can run docs directly using root folder instead of NPM, for this, please check docs section.
You still need step 1 from ReactTooltip (root)
section.
Docs are commited using npm packages, but with this steps, you can use local ReactTooltip package build.
- In docs folder, run
npm install
||yarn
to install dependencies - In root folder (parent of docs folder), run
yarn build
to generate a production build (you can useyarn build --watch
to always generate a new build when a file changes) - Change
package.json
:
From this:
"react": "18.2.0",
"react-dom": "18.2.0",
"react-tooltip": "5.0.0"
To this:
"react": "link:../node_modules/react",
"react-dom": "link:../node_modules/react-dom",
"react-tooltip": "link:.."
- Run
yarn start
and openlocalhost:3000
to see docs running locally.
OBS: do not commit this change or the docs will broken the deployment and will not be updated.