1. We will take a look at how you can use inline styles, regular CSS classes, CSS modules or react styled components. extension, example: mystyle.module.css. There are some weird, non-intuitive rules that can make it not behave the way you want– even if you set z-index to 999999! Create the CSS module with the .module.css In the previous article, we learned about condition rendering and list rendering in React and saw in how many ways, we can use conditional rendering.We made the use of Array.Map() in list rendering. Hi, I am a beginner in react-js . Instead of putting all the logic into a single file, writing smaller components has a better edge. For elaborate projects, you should consider other options: internal and externalmethods. Hello there, Welcome to Full Stack Web Development HTML, CSS ,Bootstrap and React JS course.. Change the CSS property name to its camelCase version like "background-color" to "backgroundColor", "font-size" to "fontSize", etc. Inline styles feel like too far of a step away from the traditional separation of concerns. As you probably already know, the z-index property works only on positioned elements. As in, which one appears as if it is physically closer to you. In general, this is not considered a best practice. Basically, the idea is: React will automatically append a "px" suffix to certain numeric inline style properties. You can control the z-index explicitly, however, by providing an integer value to the z-index property. Since I am using webpack, I had to install css-loader and style-loader and added them to my webpack.config.js file. But there are some exceptions, few CSS properties are unitless, check the full list of unitless properties here. application. Overlapping elements with a larger z-index cover those with a smaller one. Usually, CSS is written in a separate CSS file (with file extension .css) or in a