Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what is super(props) in react

class App extends React.Component {
  constructor(props) {
      super(props);

      this.state = {};
   }

  // React says we have to define render()
  render() {
    return <div>Hello world</div>;
  }
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react
ADD COMMENT
Topic
Name
4+8 =