3 ms·
https://codesandbox.io/s/5vvm68k6qp https://codesandbox.io/s/5vvm68k6qp. The custom effects would take functions instead of values and then `useEffect` will be
by judofyr 8y ago
https://codesandbox.io/s/5vvm68k6qp https://codesandbox.io/s/5vvm68k6qp. The custom effects would take functions instead of values and then `useEffect` will be executed by the component. There's certainly some issues in this implementation with regard to how to handle nested state changes, but I think that can be worked out.