pick-react-known-prop
v0.1.5
Published
filters unknown dom properties from props object
Downloads
31,752
Readme
pick-react-known-prop
Picks only known React DOM props (attributes) from passed object, filters unknown [?]
import {pickHTMLProps, pickSVGProps} from 'pick-react-known-prop'
//...
return <div {...pickHTMLProps(props)} />
return <path {...pickSVGProps(props)} />