0.8.0 • Published 1 year ago

@nanostores/react v0.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Nano Stores React

React integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores.

  • Small. Less than 1 KB. Zero dependencies.
  • Fast. With small atomic and derived stores, you do not need to call the selector function for all components on every store change.
  • Tree Shakable. The chunk contains only stores used by components in the chunk.
  • Was designed to move logic from components to stores.
  • It has good TypeScript support.
import { useStore } from '@nanostores/react'

import { profile } from '../stores/profile.js'

export const Header = () => {
  const { userId } = useStore(profile)
  return <header>{currentUser.name}</header>
}

Made at Evil Martians, product consulting for developer tools.


@everything-registry/sub-chunk-632@akinon/ui-docswhat-is-word-cli@rpgjs/clientkasdaklsdajldjalkhan-uikhambakitchencraftharmonyutilshf-tgi-api-helpermagnet-ai-server@woat/enoki@web-media/act-player@web-media/ap-preview@tutorialkit/astro@tutorialkit/components-react@tutorialkit/react@vaadin/dspublisher@xsolla/babka-overlay-sdk@xsolla/metaframe-react-sdk@xton/enokiai-magnetauf-nextastro-pwaaptimusaptimus-movementaptimus-sdk-test@actionbar/react@aittorai/ui@aittorai/ui-library@codacus/bolt.diy@comenchi/admin@comenchi/admin-sdk@comenchi/shop@comenchi/shop-sdk@comenchi/uijsdappsim-vc-wallet@xsolla/metaframe-testlasereyes-reacttypes-drp-uikit@astrodown/mars-react@astro-auth/client@chamaeleon/devtoolsuse-cmsify@infinitebrahmanuniverse/nolb-_nan@kseniass/react-flow-editor@mysten/enoki@kbve/laser@recative/act-player@recative/ap-preview@rezolabs/astro-boilerplate@portal-sdk/react@pickguru/pages@pickguru/groups@photonhealth/sdk@phoenix-islands/react@page-blocks/react@page-blocks/react-client@page-blocks/react-editor@standardnotes/stylekit@standardnotes/toastmtxadminmtmaiadminop-ezsendforsignnpm-check-extrasslick-modaldebug-shellbomba-cli-toolbolt-it-testbolt.diy@stoati/astro@stoati/tools-react@springmicro/cart@springmicro/utils@sumup-oss/circuit-ui@sumup/circuit-uiecosafety.frontend.commondrp-uikit@socialproof/enoki@ausuliv/patternfly-doc-core@headstash/ui@dlabaj/patternfly-doc-core@argus-labs/sdk@energize-group/ui@invoke-ai/ui@invoke-ai/ui-library@empirecodefoundation/empire-ui@engagespot/react-hooks-v2@daveyplate/better-auth-persistent@deepdanci/common@omnisat/lasereyes-react@onelabs/enoki@glittr-sdk/lasereyes-react
0.8.0

1 year ago

0.7.3

1 year ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago