[React] Use React.cloneElement to Modify and Add Additional Properties to React Children

In this lesson we'll show how to use React.cloneElement to add additional properties to the children of a React element. We'll also show that you can add additional properties not declared on the element.

 

 

posted @ 2017-06-15 20:37  Zhentiw  阅读(270)  评论(0编辑  收藏  举报