react js class component 1

react js class component

class ComponentName extends React.Component {
  render() {
    return ;
  }
}

export default ComponentName;

Here is what the above code is Doing:
1. We’re importing React from the react package.
2. We’re creating a class called ComponentName that extends React.Component.
3. We’re creating a render method that returns some JSX.
4. We’re exporting the class.

Similar Posts