Skip to content

Repository files navigation

React.js-bases

React.js basics

This very simple repository will allow you to understand the basics of React.js.

Here we will see in particular:

  • The creation of our first component : CustomerList

    • use of a separate component
    • map on an array
    • use of local state
  • Events

    • button onClick
  • Modify the state and see the component react

    • The use of this.setState() on a counter
    • .slice & .findIndex
    • Form: adding and deleting
  • Refactoring

    • spread operator
    • division / separation of components
    • props / communication between components
  • Functional components

    • Customer component transformation that does not require state management

Two methods to use this repository:

    • Observe on Github via the different commit
    • Clone this repo
    • make the following commands in your terminal (at the root of the folder):
      • yarn
      • yarn start

--> It's your turn! Enjoy!

Note: It is provided with the following dependencies:

     "prop-types"      "react"      "react-dom"      "axios"      "classnames"      "react-redux"      "redux"

About

React.js basics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages