JSPM

pick-react-known-prop

0.1.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8861
  • Score
    100M100P100Q138178F
  • License ISC

filters unknown dom properties from props object

Package Exports

  • pick-react-known-prop

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pick-react-known-prop) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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