react-clonewithprops

1.0.1 • Public • Published

Clone With Props

Simple stand alone compatibility layer for the CloneWithProps util in React. Does not use any internal React methods, files, or functions

This is tested with React 0.9 to 0.12, and adds a trivial amount of code to get everything to work.

var cloneWithProps = require('react-clonewithprops')
 
cloneWithProps(<MyComponent oldProp='hi'/> { newProp: 'hello' })

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    714
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    714
  • 1.0.0
    0

Package Sidebar

Install

npm i react-clonewithprops

Weekly Downloads

714

Version

1.0.1

License

MIT

Last publish

Collaborators

  • theporchrat