UNPKG

radi

Version:

**Radi** is a tiny javascript framework.

15 lines (11 loc) 384 B
## Actions One of the ways to change state is with actions. Every action is regular class method that has been decorated with `@action` decorator. It must return state changes to modify state. ```js @action rename() { return { name: 'Steve' } } ``` State is always immutable. Do not mutate it without returning state change in action. DOM will not be re-rendered that way.