react-valid-props

A little helper to get around unknown property in react 15.2

Usage no npm install needed!

<script type="module">
  import reactValidProps from 'https://cdn.skypack.dev/react-valid-props';
</script>

README

react-valid-props

Install

npm i --save react-valid-props

Use it

If you haven't already - when you upgrade to react 15.2 - you may start getting a few unknown prop errors - problem now solved

import filterProps from 'react-valid-props'

<div {...filterProps(this.props)}></div>

Simple!