![React Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/515/36699515/b_36699515.jpg)
There's more...
You're probably curious about how the CSS code is added to the browser since we haven't imported a CSS file to our project directly (by using a <link> tag, for example). Well, you will be surprised to see that the CSS code is being injected into our <head> tag using the <style> tag for each imported stylesheet. If you inspect your project with Chrome DevTools you will see something like this:
![](https://epubservercos.yuewen.com/B3A39D/19470389501544606/epubprivate/OEBPS/Images/737dff60-3cf8-44ac-8d83-b3734177d630.png?sign=1739199494-Lt1AApOWDWx0oyKbxRlwtegV0FcpZZay-0-bca16e60ffc2b92d8d9bcb97388b11f9)
This behavior is because the style-loader is a Webpack loader that is being used by default in our application when we create it with create-react-app:
![](https://epubservercos.yuewen.com/B3A39D/19470389501544606/epubprivate/OEBPS/Images/26c0d48b-1281-498b-a93c-ef8424d21f29.png?sign=1739199494-Be8sJ0lK8R4aBPIRGvbHmeM59Rwy0dqW-0-6541826922e12006e5aa4290411c5894)
There is no way to modify the Webpack configuration directly when we use create-react-app because it is using a package called react-scripts, but in Chapter 10, Mastering Webpack, we will see how to configure our Webpack without using a starting kit such as create-react-app.
There are more Webpack loaders that do different things, such as css-loader for CSS modules, sass-loader to implement Sass, stylus-loader to implement Stylus, and extract-text-plugin to move the CSS code to a .css file instead of injecting it to the DOM (usually, this is only used in production).