Reshow Return
- GIT
- NPM
How to use
<Return
store={/*subscribe store*/}
initStates={["name1", "name2"]}
>
{/*your code*/}
</Return>
usePartialRender
Help u partial update component, don't need redesign a complex component structure.
import { usePartialRender } from "reshow-return";
const list = {
foo: <div className="foo" />,
bar: <div className="bar" />
};
const [renderComponent, partialRender, setRenderKeys] = usePartialRender(
Object.keys(list),
list
);