Goals
- I want to display some code for reference from the project itself.
- I want the display of the code to be updated with the implementation.
- I don't want to eject from
create-react-app
This react project, created with create-react-app and typescript, is going to be used to display some custom components for re-use in other projects. My goal is to have the component be used right next to the code that is using it.
How can I load the file if I don't have access to the webpack config, and I can't use fs.readFile?