Add Inline Styles in React, What should I do?

Tell us what’s happening:
I’ii trying to figure it out what is missing. If you know what it’s that, let me know.

Your code so far

// const styles = {
color: 'purple',
fontSize: 40,
border: "2px solid purple",
// change code above this line
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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36.

Challenge: Add Inline Styles in React

Link to the challenge:

You didn’t uncomment styles.

1 Like

I didn’t check it properly. Thank you for noticing it.

1 Like