Friday, September 11, 2020

React Css

There we will learn about the css syntax in react

This is how we make styling in react
class MyHeader extends React.Component {
  render() {
    return (
      <div>
      <h1 style={{color: "red"}}>Hello Style!</h1>
      <p>Add a little style!</p>
      </div>
    );
  }
}

No comments:

Post a Comment