react-clonewithprops
Stand-alone React cloneWithProps util that works with multiple versions of React
Last updated 5 years ago by theporchrat .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-clonewithprops 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (5 years ago)

2 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 3
This Week 4
This Month 24
Last Day 1
Last Week 13
Last Month 26
Dependencies (0)
None
Dev Dependencies (10)

Copyright 2014 - 2016 © taobao.org |