React Hooks
Full Docs • GitHub Release • GitHub Content • Diff
NOTE: This release is a non-breaking change (i.e. no prior API was impacted). A major V2 version bump strictly reflects the significance of this hooks enhancement.
-
Added: The
useFassets()
function has been added in support of React Hooks, providing functional component access to theFassets object
. This is an alternative to accessingfassets
through Higher Order Components (using:withFassets()
).This greatly simplifies the UI implementation, and can be seen in action in the eatery-nod-w project (see the React Hooks section).
-
Fixed: React Component validation has been shored up by using the
react-is
package.This impacts components passed to the
withFassets()
API, and thefassetValidations.comp
validation utility.Background: As of react-redux V7,
connect()
returns a React.memo() component type, which is an object and NOT a function ... breaking feature-u's prior component validation. -
Docs: Documentation improvements include:
-
Improved the concepts and feature-segregation diagrams.
-
Added a fundamental artifacts introduction to the
Benefits
chapter.
-
-
Internal: Docs generation now uses the formal folding-menu gitbook plugin