In React, you specify a CSS class with className
. It works the same way as the HTML class
attribute:
< img className = "avatar" />
If you want to change selection, open document below and click on "Move attachment"
Quick Start – React> <h1>About</h1> <p>Hello there.<br />How do you do?</p> </> ); } If you have a lot of HTML to port to JSX, you can use an online converter. Adding styles <span>In React, you specify a CSS class with className. It works the same way as the HTML class attribute: <img className="avatar" /> Then you write the CSS rules for it in a separate CSS file: /* In your CSS */ .avatar { border-radius: 50%; } React does not prescribe how you add CSS files. In the simplest case, you’l Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details