Skip to content

Unsure if I can implement Docusaurus into my React Native Project instead of creating a seperate Directory For Docusaurus #9992

Answered by slorber
YusufGNR9 asked this question in General
Discussion options

You must be logged in to vote

You should create a separate folder for the Docusaurus project.

Your project/lib and Docusaurus do not have the same dependencies, so it's often not a good idea to try to fit everything into a single Node project. For example, your project might use React 17 while Docusaurus uses React 18, and this cause problems.

At the very least, have a dedicated folder + package.json for Docusaurus. I'd recommend using a monorepo setup (Yarn/npm workspace for example) but many users just create a subfolder and it also works.

You'll find many RN OSS libraries in our showcase with Docusaurus sites, to take a look at their setup:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by YusufGNR9
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants