0.3.2 • Published 3 years ago

use-with v0.3.2

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

Build Status Coverage Status install size

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
0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago