Notwithstanding the references to Storybook and React Styleguidist offered at the create-react-app guide on developing components in isolation, what are good approaches for developing React components in isolation per the following constraints?
- scaffold new ‘component development’ React app (for example, create-react-app) to serve as development context for a new React component
- publish the completed component to npm from the component development React app
- integrate published module with different React app, for example, a production app
I think I’ve seen React app repos that contain multiple
package.json files in component or page directories, but I do not know any recipe for developing a React app as group of one or more component modules, for example, npm modules.