Answers for "writing styles in react components"

2

use style in react

// use inline style in react
const myFunction = () => {
	return (
     <p style={{ fontSize: 24, margin: '0 auto', textAlign: 'center'}}>
       Hello world
    </p>
    );
}
Posted by: Guest on February-18-2022
1

jsx style styling

style={{color: "white",
        backgroundColor: '#f1356d',
        borderRadius: '8px'
       }}
Posted by: Guest on March-23-2022

Code answers related to "writing styles in react components"

Code answers related to "Javascript"

Browse Popular Code Answers by Language