Tell us what’s happening:
Describe your issue in detail here.
error shown
The styles variable should be an object with three properties.
The styles variable should have a color property set to a value of purple.
The styles variable should have a fontSize property set to a value of 40.
The styles variable should have a border property set to a value of 2px solid purple.
**Your code so far**
// Change code above this line
class Colorful extends React.Component {
render() {
// Change code below this line
const styles = {
color: 'purple',
fontSize : 40 ,
border: '2px solid purple'
};
return (
<div style={styles}>Style Me!</div>
);
// Change code above this line
}
};
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Challenge: Add Inline Styles in React
Link to the challenge: