-
No debes actualizar el estado de esta manera cuando haces referencia al valor actual del estado.
Debes de hacerlo con la forma: `setState( prevState => {...})` en lugar de así:
https://github.com/…
-
- Tienes que utilizar la forma de setear un state: `setState(prevState => {...});` cuando haces referencia al valor actual del estado. Es decir, haces referencia a toDoList, dentro de setToDoList.
ht…
-
- Al usar setState basándote en el valor anterior del estado, usa setState(prevState => ...)
https://github.com/nunezweb/Todolist-React-y-Fetch/blob/43d175f670f1c86c99dd48208c2f91058781abf9/src/js/co…
-
**File:** ToDoList.test.js
The addToDo function was created based on how the box maker testing was set up. (I was a little lost on how to dive into the testing for this, and have been using the box …
-
code:
```
loadContract: async ()=>{
//Create JS version of smart contract
const todoList = await $.getJSON('TodoList.json')
App.contracts.TodoList = TruffleContract(todoList)
…
-
## 별도 타입 분리 굳
![image](https://github.com/2njeong/next.js_todolist/assets/62840864/8964ebbc-2527-4f21-ab74-6969b89d27ed)
타입이 특정 컴포넌트에 종속되는 경우 관리가 매우 어려울 수 있습니다. 좋은 습관이에요.
## 커스텀 훅 분리 굳
![image](…
-
고생하셨습니다. localStorage 사용으로 Persist 유지할 수 있도록 하신점 좋았습니다.
react 는 .js 보다는 .jsx 확장자를 사용합니다. 리액트 컴포넌트가 .js 로 되어있지 않도록 관리하는게 좋습니다.
https://github.com/tnrnr910/todoList/blob/14ba16aa82fde83534994beb82…
-
![Screen Shot from awesomescreenshot.com](https://www.awesomescreenshot.com/api/v1/destination/image/show?ImageKey=tm-8083-42719-59a77813996015ae0e13f8f7ff6c1157)
---
**Source URL**:
[https://4geeks…
-
**General Information**
- [ ] Bug
- [ ] Improvement
- [ ] Feature
- [x] Other
**Description**
I'm trying to use `@component` decorator and it shows this error.
```
Version: webpack 4.20.2
…
-
I'm trying to change auth module to my needs and with this `index.js`
```
const path = require('path')
module.exports = function nuxtAuthDevise (options) {
this.addVendor(['cookie', 'js-cook…