react二次封装input

文章浏览阅读91次。子组件主动继承来自input的原生属性,将其给props,让父组件也能传参对应的input的原生属性,做到不需要额外再写一次input的原生属性,只需要写额外传参即可。