2.0.0.beta (September 25, 2020)
Fre2 is beta now!
Thanks for @shadowvzs @prettykernel @mindplay-dk
- algebraic effect(via. resumable exception)
Demo is here: https://github.com/yisar/fre/blob/master/demo/src/resume-exception.tsx
There is a few change in useReducer. If the state is to be used to throw promise, it needs to be marked with *
.
- typescript4
All file move to typescript, and in the future, we should explore how to reduce the code size with typescipt.
- state and effect
No need requestAnimationFrame for effects, and state should defer to update.
- jsx2
For babel8 and Typescript4.1
Fre2 represents the basic completion of Concurrent mode, including time slicing and algebraic effects. We will continue to explore faster performance, smaller size and better codes.
Thank you very much!