Namibian Pyjama Merchant

    pick-react-known-prop

    0.1.5 • Public • Published

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

    Install

    npm i pick-react-known-prop

    DownloadsWeekly Downloads

    4,428

    Version

    0.1.5

    License

    ISC

    Unpacked Size

    23.2 kB

    Total Files

    3

    Last publish

    Collaborators

    • tyv