@futil/core
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

@futil/core

All the frontend utilities you can dream of.

npm version

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)} />;
};

Readme

Keywords

none

Package Sidebar

Install

npm i @futil/core

Weekly Downloads

60

Version

0.0.5

License

MIT

Unpacked Size

7.03 kB

Total Files

12

Last publish

Collaborators

  • bigwoof91