Skip to content

Instantly share code, notes, and snippets.

@programadorEmerson
Last active June 20, 2024 18:00
Show Gist options
  • Select an option

  • Save programadorEmerson/c5643929ca5d716ea47ab5a7b2ce108f to your computer and use it in GitHub Desktop.

Select an option

Save programadorEmerson/c5643929ca5d716ea47ab5a7b2ce108f to your computer and use it in GitHub Desktop.

Revisions

  1. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Checklist do Redux

    *Antes de começar*
    - [x] pensar como será o *formato* do seu estado global
    - [ ] pensar como será o *formato* do seu estado global
    - [ ] pensar quais actions serão necessárias na sua aplicação

    *Instalação*
  2. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    *Antes de começar*
    - [x] pensar como será o *formato* do seu estado global
    - [x] pensar quais actions serão necessárias na sua aplicação
    - [ ] pensar quais actions serão necessárias na sua aplicação

    *Instalação*
    - [ ] npx create-react-app my-app-redux;
  3. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    - [x] pensar quais actions serão necessárias na sua aplicação

    *Instalação*
    - [x] npx create-react-app my-app-redux;
    - [ ] npx create-react-app my-app-redux;
    - [ ] npm install --save redux react-redux;
    - [ ] npm install --save @redux-devtools/extension

  4. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@

    *Instalação*
    - [x] npx create-react-app my-app-redux;
    - [x] npm install --save redux react-redux;
    - [ ] npm install --save redux react-redux;
    - [ ] npm install --save @redux-devtools/extension

    *Criar dentro do diretório `src`:*
  5. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@
    *Instalação*
    - [x] npx create-react-app my-app-redux;
    - [x] npm install --save redux react-redux;
    - [x] npm install --save @redux-devtools/extension
    - [ ] npm install --save @redux-devtools/extension

    *Criar dentro do diretório `src`:*
    - [ ] diretório `redux`
  6. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@
    - [x] npm install --save @redux-devtools/extension

    *Criar dentro do diretório `src`:*
    - [x] diretório `redux`
    - [ ] diretório `redux`

    *Criar dentro do diretório `redux`*
    - [ ] arquivo `store.js`
  7. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@
    - [x] diretório `redux`

    *Criar dentro do diretório `redux`*
    - [x] arquivo `store.js`
    - [ ] arquivo `store.js`
    - [ ] diretório `actions`
    - [ ] diretório `reducers`

  8. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@
    *Criar dentro do diretório `redux`*
    - [x] arquivo `store.js`
    - [ ] diretório `actions`
    - [x] diretório `reducers`
    - [ ] diretório `reducers`

    *Criar dentro do diretório `actions`:*
    - [ ] arquivo `index.js`.
  9. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@

    *Criar dentro do diretório `redux`*
    - [x] arquivo `store.js`
    - [x] diretório `actions`
    - [ ] diretório `actions`
    - [x] diretório `reducers`

    *Criar dentro do diretório `actions`:*
  10. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@
    - [x] diretório `reducers`

    *Criar dentro do diretório `actions`:*
    - [x] arquivo `index.js`.
    - [ ] arquivo `index.js`.

    *Criar dentro do diretório `reducers`:*
    - [ ] arquivo `index.js`.
  11. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@
    - [x] arquivo `index.js`.

    *Criar dentro do diretório `reducers`:*
    - [x] arquivo `index.js`.
    - [ ] arquivo `index.js`.

    *Criar dentro do arquivo `redux/store.js`:*
    - [ ] importar o createStore
  12. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@
    - [x] arquivo `index.js`.

    *Criar dentro do arquivo `redux/store.js`:*
    - [x] importar o createStore
    - [ ] importar o createStore
    - [ ] configurar o [Redux DevTools](https://github.com/reduxjs/redux-devtools)
    - [ ] importar o rootReducer
    - [ ] criar e exportar a store
  13. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@

    *Criar dentro do arquivo `redux/store.js`:*
    - [x] importar o createStore
    - [x] configurar o [Redux DevTools](https://github.com/reduxjs/redux-devtools)
    - [ ] configurar o [Redux DevTools](https://github.com/reduxjs/redux-devtools)
    - [ ] importar o rootReducer
    - [ ] criar e exportar a store

  14. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@
    *Criar dentro do arquivo `redux/store.js`:*
    - [x] importar o createStore
    - [x] configurar o [Redux DevTools](https://github.com/reduxjs/redux-devtools)
    - [x] importar o rootReducer
    - [ ] importar o rootReducer
    - [ ] criar e exportar a store

    Exemplo:
  15. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -27,7 +27,7 @@
    - [x] importar o createStore
    - [x] configurar o [Redux DevTools](https://github.com/reduxjs/redux-devtools)
    - [x] importar o rootReducer
    - [x] criar e exportar a store
    - [ ] criar e exportar a store

    Exemplo:

  16. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,7 @@ export default store;
    ```

    *Criar dentro do arquivo `redux/reducers/index.js`:*
    - [x] estado inicial
    - [ ] estado inicial
    - [ ] criar função reducer com `switch` retornando apenas a opção `default`
    - [ ] criar `rootReducer` usando o `combineReducers`
    - [ ] exportar `rootReducer`
  17. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -43,7 +43,7 @@ export default store;

    *Criar dentro do arquivo `redux/reducers/index.js`:*
    - [x] estado inicial
    - [x] criar função reducer com `switch` retornando apenas a opção `default`
    - [ ] criar função reducer com `switch` retornando apenas a opção `default`
    - [ ] criar `rootReducer` usando o `combineReducers`
    - [ ] exportar `rootReducer`

  18. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -44,7 +44,7 @@ export default store;
    *Criar dentro do arquivo `redux/reducers/index.js`:*
    - [x] estado inicial
    - [x] criar função reducer com `switch` retornando apenas a opção `default`
    - [x] criar `rootReducer` usando o `combineReducers`
    - [ ] criar `rootReducer` usando o `combineReducers`
    - [ ] exportar `rootReducer`

    Exemplo:
  19. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -45,7 +45,7 @@ export default store;
    - [x] estado inicial
    - [x] criar função reducer com `switch` retornando apenas a opção `default`
    - [x] criar `rootReducer` usando o `combineReducers`
    - [x] exportar `rootReducer`
    - [ ] exportar `rootReducer`

    Exemplo:

  20. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -68,7 +68,7 @@ export default rootReducer;

    *No arquivo `index.js`:*
    - [ ] importar a `store`
    - [x] importar o `Provider`, para fornecer os estados a todos os componentes encapsulados pelo `<App />`
    - [ ] importar o `Provider`, para fornecer os estados a todos os componentes encapsulados pelo `<App />`

    Exemplo:

  21. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -67,7 +67,7 @@ export default rootReducer;
    ```

    *No arquivo `index.js`:*
    - [x] importar a `store`
    - [ ] importar a `store`
    - [x] importar o `Provider`, para fornecer os estados a todos os componentes encapsulados pelo `<App />`

    Exemplo:
  22. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -86,7 +86,7 @@ import store from './redux/store'
    ```

    *Na pasta `actions/index.js`:*
    - [x] criar e exportar os actionTypes
    - [ ] criar e exportar os actionTypes

    Exemplo:

  23. programadorEmerson revised this gist Apr 6, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -95,7 +95,7 @@ Exemplo:
    export const ADD_EMAIL = 'ADD_EMAIL';
    ```

    - [x] criar e export os actions creators necessários
    - [ ] criar e export os actions creators necessários

    Exemplo:

  24. programadorEmerson revised this gist Apr 5, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -95,7 +95,7 @@ Exemplo:
    export const ADD_EMAIL = 'ADD_EMAIL';
    ```

    - [ ] criar e export os actions creators necessários
    - [x] criar e export os actions creators necessários

    Exemplo:

  25. programadorEmerson revised this gist Apr 5, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -86,7 +86,7 @@ import store from './redux/store'
    ```

    *Na pasta `actions/index.js`:*
    - [ ] criar e exportar os actionTypes
    - [x] criar e exportar os actionTypes

    Exemplo:

  26. programadorEmerson revised this gist Apr 5, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -68,7 +68,7 @@ export default rootReducer;

    *No arquivo `index.js`:*
    - [x] importar a `store`
    - [ ] importar o `Provider`, para fornecer os estados a todos os componentes encapsulados pelo `<App />`
    - [x] importar o `Provider`, para fornecer os estados a todos os componentes encapsulados pelo `<App />`

    Exemplo:

  27. programadorEmerson revised this gist Apr 5, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -67,7 +67,7 @@ export default rootReducer;
    ```

    *No arquivo `index.js`:*
    - [ ] importar a `store`
    - [x] importar a `store`
    - [ ] importar o `Provider`, para fornecer os estados a todos os componentes encapsulados pelo `<App />`

    Exemplo:
  28. programadorEmerson revised this gist Apr 5, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -45,7 +45,7 @@ export default store;
    - [x] estado inicial
    - [x] criar função reducer com `switch` retornando apenas a opção `default`
    - [x] criar `rootReducer` usando o `combineReducers`
    - [ ] exportar `rootReducer`
    - [x] exportar `rootReducer`

    Exemplo:

  29. programadorEmerson revised this gist Apr 5, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -44,7 +44,7 @@ export default store;
    *Criar dentro do arquivo `redux/reducers/index.js`:*
    - [x] estado inicial
    - [x] criar função reducer com `switch` retornando apenas a opção `default`
    - [ ] criar `rootReducer` usando o `combineReducers`
    - [x] criar `rootReducer` usando o `combineReducers`
    - [ ] exportar `rootReducer`

    Exemplo:
  30. programadorEmerson revised this gist Apr 5, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checklist-redux.md
    Original file line number Diff line number Diff line change
    @@ -43,7 +43,7 @@ export default store;

    *Criar dentro do arquivo `redux/reducers/index.js`:*
    - [x] estado inicial
    - [ ] criar função reducer com `switch` retornando apenas a opção `default`
    - [x] criar função reducer com `switch` retornando apenas a opção `default`
    - [ ] criar `rootReducer` usando o `combineReducers`
    - [ ] exportar `rootReducer`