isa-react-memo
v0.0.5
Published
react component
Downloads
14
Readme
isa-react-memo
Install
- yarn
yarn add isa-react-memo
- 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
type
: memo or todo select components type.
MemoProps
value: string;
onChange: React.ChangeEventHandler<HTMLTextAreaElement>;
containerProps?: React.HTMLAttributes<HTMLDivElement>;
textAreaProps?: React.HTMLAttributes<HTMLTextAreaElement>;
TodoProps
todoItem: Array<{ isAvail: boolean; todo: string }>;
addItemHandler: (todo: string) => void;
checkItemHandler: (idx: number) => void;
deleteItemHandler: (idx: number) => void;
containerProps?: React.HTMLAttributes<HTMLDivElement>;
inputProps?: React.HTMLAttributes<HTMLInputElement>;
listProps?: React.HTMLAttributes<HTMLUListElement>;
LICENSE
MIT