There are many ways to style React with CSS, this tutorial will take a closer look at inline styling, and CSS stylesheet.
Inline Styling
To style an element with the inline style attribute, the value must be a JavaScript object
camelCased Property Names
Since the inline CSS is written in a JavaScript object, properties with two names, like background-color, must be written with camel case syntax:
CSS Stylesheet
You can write your CSS styling in a separate file, just save the file with the .css file extension, and import it in your application.
CSS Modules
Another way of adding styles to your application is to use CSS Modules.
CSS Modules are convenient for components that are placed in separate files.The CSS inside a module is available only for the component that imported it, and you do not have to worry about name conflicts.
Create the CSS module with the .module.css extension, example: mystyle.module.css
#reactsj #reactjsbeginner #reactjstutorial #reactjsstyle #reactnative
#jasacadamy #reactplaylist