React cloneElement and createElement alternaive.
To help u build anything.
- GIT
- NPM
import build from "reshow-build";
import YourComponent from "./YourComponent";
const Comp = props =>
build(YourComponent)(props, children /* optioninal*/ )
import build from "reshow-build";
import YourComponent from "./YourComponent";
const Comp = props =>
build(<YourComponent />)(props, children /* optioninal*/ )
import build from "reshow-build";
import YourComponent from "./YourComponent";
const Comp = props =>
build([
<YourComponent />,
YourComponent,
() => <YourComponent />,
'div',
'just string'
])(props, children /* optioninal*/ )