1.0.1 • Published 9 years ago

react-clonewithprops v1.0.1

Weekly downloads
1,398
License
MIT
Repository
github
Last release
9 years ago

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' })