Later in this guide, I will tell Webpack to use this HTML file for development and to automatically inject a script tag element at the bottom of this file. This HTML has 1 simple job, and that is to serve our React app and attach it to a div element with an ID of root. Inside the public directory, I will add a file called, index.html. The public directory is responsible for holding any CSS stylesheets, image assets, and of course, your skeleton HTML markup. The first step I will take is to create a directory called, public. Configure Webpack mode, entry point, and output. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |