Skip to content

tyv/pick-react-known-prop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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