isa-react-memo
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

isa-react-memo

Install

  1. yarn
yarn add isa-react-memo
  1. npm
npm i isa-react-memo

Usage

import React, {useState} from 'react';
import IsaReactMemo from 'isa-react-memo',

const TestApp = () => {
  const [memo, setMemo] = useState('');
  return (
    <IsaReactMemo type={'memo'} value={memo} onChange={(e) => setMemo(e.target.value)} />
  );
};

Props

  1. type: memo or todo select components type.

MemoProps

  1. value: string;
  2. onChange: React.ChangeEventHandler<HTMLTextAreaElement>;
  3. containerProps?: React.HTMLAttributes<HTMLDivElement>;
  4. textAreaProps?: React.HTMLAttributes<HTMLTextAreaElement>;

TodoProps

  1. todoItem: Array<{ isAvail: boolean; todo: string }>;
  2. addItemHandler: (todo: string) => void;
  3. checkItemHandler: (idx: number) => void;
  4. deleteItemHandler: (idx: number) => void;
  5. containerProps?: React.HTMLAttributes<HTMLDivElement>;
  6. inputProps?: React.HTMLAttributes<HTMLInputElement>;
  7. listProps?: React.HTMLAttributes<HTMLUListElement>;

LICENSE

MIT

Readme

Keywords

Package Sidebar

Install

npm i isa-react-memo

Weekly Downloads

0

Version

0.0.5

License

MIT

Unpacked Size

11.4 kB

Total Files

16

Last publish

Collaborators

  • isa(yunjongryu)