const styles = {
color: 'purple',
fontSize: 40,
border: "2 solid purple",
}
class Colorful extends React.Component {
render() {
// change code below this line
return (
<div style={styles}>Style Me!</div>
);
// change code above this line
}
};
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:76.0) Gecko/20100101 Firefox/76.0.
Challenge: Add Inline Styles in React
Link to the challenge:
Hey guys! For some strange reason, when I press “Run the Tests”, it won’t do anything really, it just keeps loading and loading. Do any of you know why? I think my code is right.