inline style react 1

inline style react

//Multiple inline styles
Content

Here is what the above code is Doing:
1. We’re creating a React component called HelloWorld.
2. We’re using JSX to return a div element.
3. We’re using a JavaScript expression to output a variable called name.
4. We’re using an inline style to set the color of the text to blue.
5. We’re using a JavaScript expression to set the value of the style attribute.

Similar Posts