approaches for developing components in isolation sought


(Gaspher Ponys) #1

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?

  1. scaffold new ‘component development’ React app (for example, create-react-app) to serve as development context for a new React component
  2. publish the completed component to npm from the component development React app
  3. 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.

Thanks,

G