Skip to content

alpersonalwebsite/react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

493 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React

License: MIT

Original MOTTO: An easy way to learn React through examples.

Updated MOTTO: Learning React topic by topic.

Table of contents

Intro

Getting started

Components & data

Ecosystem

Before starting


2/21/19 UPDATE: Many things happened in React and its ecosystem. I will try to update the sections to React 16.8.\* (Hooks and some interesting new APIs) and go deeper in the “Life cycle” paragraph for class-based Components. Also, I will be splitting sections in sub-sections for better understanding and proper grouping.


After several years of contributing, mentoring and working with JS and React, I decided to “put together” some notes linked to recurrent doubts and obstacles that friends and co-workers have to face daily.

This is a pure practical guide (ps, it was at the beginning): please, keep the practical intention present throughout these "shared notes"; I don't have the intent of challenging the great and plentiful coaching classes, nor the books/"white papers" that today, you can easily find anywhere (starting with Facebook's own proprietary documentation).

My aim, as I stated before (even with the latest add-ons and updates), is -still- clearly pragmatic. You will see some concepts and technicalities (as general and well-needed context), but you should (perhaps must) complement this "joint exercise" with other materials. I try to avoid quoting or referencing, given that an important part of your training is discovering good sources and picking those that satisfy your own and extremely personal "way to learn". However, taking a look at the mother source will not hurt you: react.

Getting Started

Pre-requisites

You should have an intermediate knowledge of JavaScript, including some exposure to ES2015 / ES6. The lessons introduce more advanced topics (closures, currying, the event loop) as needed, but a missing JS foundation will make the React parts much harder than they need to be.

Concretely, before starting you should be comfortable with:

  • ES6+ syntax: let/const, arrow functions, template literals, default parameters, rest/spread.
  • Destructuring (objects and arrays) and shorthand object properties.
  • Modules: import/export (default and named).
  • Higher-order functions and array methods: .map(), .filter(), .reduce().
  • Asynchronous JavaScript: callbacks, promises, async/await.
  • The this keyword and how its value is determined.
  • Prototypes and class syntax.

If any of these are unfamiliar, work through the Intro chapters first and come back when they feel comfortable.

Before proceeding with the tutorial, be sure that you have installed or, install...

Required

  • Node.js
  • Package manager (npm which comes with Node or yarn)

Note: packages, dependencies, libraries... are going to be referenced on-demand. Those whose scope is bigger will be addressed in 09_packages

Recommended

Alternatives

About

React[0] + Redux[0] > A brief introduction to React and Redux

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors