reshow-return
TypeScript icon, indicating that this package has built-in type declarations

0.18.0 • Public • Published

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
  );

Versions

Current Tags

Version History

Package Sidebar

Install

npm i reshow-return

Weekly Downloads

393

Version

0.18.0

License

ISC

Unpacked Size

59.8 kB

Total Files

36

Last publish

Collaborators

  • hillliu