The React framework simply consists of a collection of JavaScript modules that we can use to build beautiful, responsive UIs. Because of that, you need some JavaScript knowledge to follow this chapter.
A very good resource to get re-introduced to JavaScript can be found at https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript.
In this chapter, we'll be primarily using ES6, which can simply be considered the new version of JavaScript.
There are four core features of ES6 that we'll come across in this chapter:
- Classes: A class can be considered as a special function in JavaScript, where you can define internal methods. For more information, please visit https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes.
- Arrow functions: An arrow function is JavaScript's version of...