use-with
v0.3.2
Published
use-with
Downloads
40
Readme
use-with
React Hooks + HOC.
Install
npm install use-with
Usage
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" />
</>;
}
Workflow
# develop
npm start
# build
npm run build
# test
npm test
# commit changes
npm run commit
# publish
npm publish