Zaid-Ajaj/Feliz

Complete API implementation for hooks from React

Closed this issue ยท 2 comments

Complete API implementation for hooks from React, see API Reference

Basic Hooks

  • React.useState
  • React.useEffect
  • React.useContext

Additional Hooks

  • React.useReducer
  • React.useCallback
  • React.useMemo
  • React.useRef
  • React.useLayoutEffect
  • React.useDebugValue
  • React.useImperativeHandle

Suggestions/ideas/PRs with the implementation of these is very much welcome and highly appreciated ๐Ÿ™

In case it's relevant, see the comments to fable-compiler/fable-react@fa43005 for a discussion that touches on whether it makes sense to force option-wrapping of the ref hook's current value.

I will plan to look at useContext within the coming days, if it's not already in progress elsewhere.