An example of a simple frontend monorepo containing a React app and a folder of shared components. This pattern can be used to create a component library used by other apps or microfrontends contained in the same repo.
- Both packages were bootstrapped with Create React App using the TypeScript template.
- Linked with Yarn workspaces.
- To access files outside its own
src
directory, the React app (app-1
) uses react-app-rewired and customize-cra to bypass CRA's restrictions against importing external files.