What is the best way of creating a monorepo to share components between different apps?

I want to have a structure like this:

/packages /apps /react-app01 /react-app02 (...) /shared /components /hooks (...) 

I want the apps inside /apps to be able to import components, hooks, functions and everything inside the /shared directory. I’ll be using create-react-app, typescript, eslint and jest. I need intellisense and if possible auto recompile if I change something inside /shared.

submitted by /u/KeiNivky
[link] [comments]