styling inside react component code example
Example 1: react div style
return <div style={{display: 'inline-block'}}>
Example 2: inline styling in react
render() {
return (
<p style={{color: 'red'}}>
Example Text
</p>
);
}