/react-project

Very first react project + tachyons

Primary LanguageJavaScript

React + Redux

My first App using React.js + Redux; Simple App that grab data from jsonplaceholder, input text area that filter the array of robots by name.

  • Debugger: Install debugger with the command -> npm install redux-logger. In your index.js -> import { createLogger } from 'redux-logger';

How to use it? 1.

<!-- create Debugger -->
const logger = createLogger();
Use the applyMiddleware(logger) function to specify wich actions has to be debugged

Asyncronous Redux

npm install redux-thunk then import in the index file thunkMiddleware from redux-thunk; create constants -> import them in the constants file, after that write the actions

The function called combineReducers allows us to combine different reducers into a root reducer.

Resources

Library