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

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

Install

npm i reshow-return

DownloadsWeekly Downloads

492

Version

0.17.36

License

MIT

Unpacked Size

49.2 kB

Total Files

33

Last publish

Collaborators

  • hillliu