We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement FaCC composition helper, as suggested here:
const wrap = (faccs, params, callback) => { if (!faccs.length) { return callback(...params); } const [Comp, ...restFaccs] = faccs; return React.createElement(Comp, null, (...args) => { params.push(args.length > 1 ? args : args[0]); return wrap(restFaccs, params, callback); }); }; const userspaceSolution = (...args) => wrap(args.slice(0, args.length - 1), [], args[args.length - 1]);
The text was updated successfully, but these errors were encountered:
This structure seems too complex for my understanding, can you also show example usage? Also it should be FaaC - Function as a Child
FaaC
Function as a Child
Sorry, something went wrong.
@ackvf Here is an example usage: reactjs/rfcs#47 (comment)
FaCC — Function as Child Component
streamich
No branches or pull requests
Implement FaCC composition helper, as suggested here:
The text was updated successfully, but these errors were encountered: