Let me preface this by saying I am a novice to ReactJS. I am trying to learn by making a simple site that populates data using React. I have a JSON file that contains link d
Using ES6, the initial state must be created in your constructor for the React component class, like this:
constructor(props) { super(props) this.state ={ // Set your state here } }
See this documentation.