Skip to content

Repository files navigation

hoc-with-props

Higher-order component for map object with props

NPM JavaScript Style Guide

Install

npm install --save hoc-with-props

Usage

import * as React from "react";

import { withProps } from "hoc-with-props";

const Component = props => <div {...props}>{"Test component"}</div>;
const ComponentWithProps = withProps({ isTestProp: true })(TestComponent);
const ComponentWithPropsFunc = withProps({ isTestProp: true })(TestComponent);

License

MIT © artemgafarov66


These tools are created using create-react-hook.

About

Higher-order React component for map object with props

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages