ohp allows to filter props to get only the react html props.
npm install react-only-html-props!Build Status


ohp allows to filter props to get only the react html props.
``js
import React, { useState } from "react";
const ArticlesList = props => {
return (
// source of the problem ({...props})
const App = () => {
const articles = [{ title: "My super article" }, { title: "Lorem ipsum" }];
const [, setEditingArticle] = useState();
return (
export default App;
`
The code below will trigger this warning :
`setEditingArticle
Warning: React does not recognize the prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase seteditingarticle instead. If you accidentally passed it from a parent component, remove it from the DOM element.`
`js
import React, { useState } from "react";
import { ohp } from "react-only-html-props";
const ArticlesList = props => {
return (
// solution of the problem ({...ohp(props)})
const App = () => {
const articles = [{ title: "My super article" }, { title: "Lorem ipsum" }];
const [, setEditingArticle] = useState();
return (
export default App;
``