ingred-ui
ingred-ui copied to clipboard
<DataTable />内でstateを持たない
利用する側(コンポーネント)でも「選択した行」をstate
として持っているので、state
の二重管理となる。
コードもそのせいで複雑になっている節があるので、props
で管理したい。
行でいうとこの辺をpropsで管理したい。 https://github.com/voyagegroup/ingred-ui/blob/master/src/components/DataTable/DataTable.tsx#L186