React: Difference between revisions

719 bytes added ,  9 October 2019
add personal blogs to references
add personal blogs to references
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Notes from Learning React, 2nd Edition by Porcello & Banks
Notes from '''Learning React, 2nd Edition''' by Porcello & Banks and other sources


= Installation =
= Installation =
Line 87: Line 87:
== Arrow functions and scope ==
== Arrow functions and scope ==


Reference: [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions Arrow functions]
Reference
 
* [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions Arrow functions]
* [https://www.codementor.io/dariogarciamoya/understanding-this-in-javascript-with-arrow-functions-gcpjwfyuc Understanding "this" in javascript with arrow functions]
 
 


<source lang="js">
<source lang="js">
Line 1,712: Line 1,717:
* Speed
* Speed
* Consistency
* Consistency
Installing webpack
<source lang="console">
$ npm install --save-dev webpack@next webpack-cli
</source>
Installing Babel dependencies
<source lang="console">
$ npm install babel-loader @babel/core --save-dev
</source>
Specify Babel presets
<source lang="console">
$ npm install @babel/preset-env @babel/preset-react --save-dev
</source>


= React State Management =
= React State Management =
= Reference =
* [https://react-icons.netlify.com React Icons]
* Personal blogs
** [https://www.leighhalliday.com Leigh Halliday]
** [https://www.robinwieruch.de Robin Wieruch]