Echo JS 0.11.0

<~>

highmastdon 9 days ago. link 2 points
About the Hyperapp example, this is completely wrong. It might work but that's not how you should create an action. It should be a pure function returning a new state:

Wrong: 

```
onInputChange: (event) => state => {
  state.form[event.target.name] = event.target.value;
  return state;
},
```


Right:

```
onInputChange: (event) => state => {
  return { 
    form: { 
      ...state.form, 
      [event.target.name]: event.target.value 
    } 
  }

},
```