What is fipc
Fipc is - Function Injecting Parameters using Currying
This package adds a
createFipc function that calls to create a Fipc from any of your functional component
npm i react-fipc
To create a Fipc, you need to call
createFipc with any of your functional components
I prefer to use $ for Fipc's names
There are 3 ways to use the Fipc
The first option is to call Fipc with props you want to bind It will return a simple component
The second option is to call it with the
$carry, if you plan to add props in another place
The third option is to render fipc in your component.
$render prop for it.
Fipc props injection
By default, the Fipc
displayName is equal to the name of the base component.
If you need to change it, react-fipc provides a
saveNewDisplayName function to make changing the displayName easier