Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-clonewithprops

jquense747MIT1.0.1

Stand-alone React cloneWithProps util that works with multiple versions of React

react, cloneWithProps, react-addons

readme

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