October 2017
Intermediate to advanced
302 pages
7h 27m
English
Right now, our app doesn't have that much CSS, so we can, in theory, just <link> our entire style sheet inside index.html, instead of importing it in App.js, but as our application and our CSS grow in size, that will be less than optimal.
Our best option is to inline the relevant CSS. We start by adding a <style> tag to our <head>, right below our <title> tags.
Then, open up src/app.css, and cut (not copy) the CSS within the /* Start initial styles */ and /* End Initial styles */ comments.
Put that inside the style tags and reload the app:

The application looks exactly the same! That's the good news; at this stage, ...
Read now
Unlock full access