Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use style in react

// use inline style in react
const myFunction = () => {
	return (
     <p style={{ fontSize: 24, margin: '0 auto', textAlign: 'center'}}>
       Hello world
    </p>
    );
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #style #react
ADD COMMENT
Topic
Name
9+8 =