React Hooks HOC.
npm install use-with
import * as React from 'react';
import useWith from 'use-with';
import Hello from './Hello';
export default function Demo({className}) {
const HelloWorld = useWith(Hello, {className, message: 'World'});
return <>
<HelloWorld />
<HelloWorld />
<HelloWorld />
<HelloWorld className="last" />
</>;
}
# develop
npm start
# build
npm run build
# test
npm test
# commit changes
npm run commit
# publish
npm publish