reshow-build

React super cloneElement and createElement

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
reshow-build
440.17.21a month ago3 years agoMinified + gzip package size for reshow-build in KB

Readme

Reshow Build
React cloneElement and createElement alternaive. To help u build anything.
GIT
* https://github.com/react-atomic/reshow/tree/main/packages/reshow-build
  • NPM
* https://www.npmjs.com/package/reshow-build

Usage

Build without instance

import build from "reshow-build";
import YourComponent from "./YourComponent";

const Comp = props => 
 build(YourComponent)(props, children /* optioninal*/ )

Build with instance

import build from "reshow-build";
import YourComponent from "./YourComponent";

const Comp = props => 
 build(<YourComponent />)(props, children /* optioninal*/ )

Build with array

```js import build from "reshow-build"; import YourComponent from "./YourComponent";
const Comp = props => build(
<YourComponent />,
YourComponent,
() => <YourComponent />,
'div',
'just string'
)(props, children / optioninal/ ) ```

More examples

Examples