npx create-docz-app docz-app-react-router --example react-router
# or
yarn create docz-app docz-app-react-router --example react-router
curl https://codeload.github.com/doczjs/docz/tar.gz/main | tar -xz --strip=2 docz-main/examples/react-router
mv react-router docz-react-router-example
cd docz-react-router-example
A simple docz demo with react router. Note the file in src/gatsby-theme-docz/wrapper.js
. It wraps the page with a Router to allow the usage of things like Route
and Link
yarn # npm i
yarn dev # npm run dev
yarn build # npm run build
yarn serve # npm run serve