0.0.5 • Published 2 years ago

@futil/core v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Installation

# npm
$ npm i --save @futil/core

# yarn
$ yarn add @futil/core

# pnpm
$ pnpm add @futil/core

Usage

import { spread } from '@futil/core/v1/spread';
// or
// import { spread } from '@futil/core/v1';
import {
  SomeOtherComponent,
  type SomeOtherComponentProps,
} from 'some-other-component';

type MyReactComponentProps = {
  someOtherComponentProps?: SomeOtherComponentProps;
};

const MyReactComponent = ({
  someOtherComponentProps,
}: MyReactComponentProps) => {
  return <SomeOtherComponent {...spread(someOtherComponentProps)} />;
};
0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago