I found a generic open source react component on github that I want to modify and use in my own react project. That component is in a project using rollup as the bundler. It's a very simple component with only one file, src/index.tsx
. Included in the project are a rollup.config.js
and tsconfig.json
.
I'd prefer to fork the project and modify it it's own repository and include it in my project as opposed to just copying the code into my project.
In order to modify the component I'd like to be able to see it in a html page as I make changes, as I would when working on a create-react-app project.
What is the typical development workflow when working in a react project that only includes components? How exactly can I preview changes?
I've tried making another react app as a sub-project within the component project and importing the bundled output of the parent project, although it compiled successfully is giving me this error, (I suspect the issue of duplicate react).