reshow-return
v0.18.1
Published
reshow-return (simple connect component with reshow-flux)
Downloads
4,038
Maintainers
Readme
Reshow Return
- GIT
- https://github.com/react-atomic/reshow/tree/main/packages/reshow-return
- NPM
- https://www.npmjs.com/package/reshow-return
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
);