- Run
npm install||yarnto install dependencies - You can test by:
yarn devto 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||yarnto install dependencies - In root folder (parent of docs folder), run
yarn buildto generate a production build (you can useyarn build --watchto 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 startand openlocalhost:3000to see docs running locally.
OBS: do not commit this change or the docs will broken the deployment and will not be updated.