create-react-app
to generate a React project, you might want to use JavaScript code that you are developing externally from the react project, However, create-react-app
has a plugin that blocks referencing files that are in the external src
folder of the react project. In this article, I show you how to reference external files and use them in the react project.