1.0.0 • Published 8 months ago

@nanostores/react v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months 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 = ({ postId }) => {
  const profile = useStore($profile)
  return <header>Hi, {profile.name}</header>
}

Made at Evil Martians, product consulting for developer tools.


@everything-registry/sub-chunk-632@akinon/ui-docswhat-is-word-clikasdaklsdajldjalkhan-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@page-blocks/react@page-blocks/react-client@page-blocks/react-editor@patternfly/patternfly-doc-core@pickguru/groups@pickguru/pages@photonhealth/sdk@portal-sdk/react@phoenix-islands/reactecosafety.frontend.commondrp-uikit@actionbar/react@chamaeleon/devtoolsdebug-shellbomba-cli-toolbolt-it-testbolt.diy@argus-labs/sdk@ausuliv/patternfly-doc-core@aittorai/ui@aittorai/ui-librarydappsim-vc-wallet@xsolla/metaframe-testlasereyes-reacttypes-drp-uikit@astrodown/mars-react@astro-auth/clientuse-cmsify@infinitebrahmanuniverse/nolb-_nanmtxadminmtmaiadminop-ezsendforsignnpm-check-extrasslick-modal@daveyplate/better-auth-persistent@deepdanci/common@comenchi/admin@comenchi/admin-sdk@comenchi/shop@comenchi/shop-sdk@comenchi/uijs@codacus/bolt.diy@dlabaj/patternfly-doc-core@energize-group/ui@empirecodefoundation/empire-ui@engagespot/react-hooks-v2@socialproof/enoki@recative/act-player@recative/ap-preview@rezolabs/astro-boilerplate@headstash/ui@rpgjs/client@invoke-ai/ui@invoke-ai/ui-library@glittr-sdk/lasereyes-react@omnisat/lasereyes-react@springmicro/cart@springmicro/utils@kseniass/react-flow-editor@onelabs/enoki@mysten/enoki@kbve/laser@langgraph-js/ui@likec4/diagram@lingotly/plate-bundle@star4/react-utils@standardnotes/stylekit@standardnotes/toast@stoati/astro@stoati/tools-react@sumup-oss/circuit-ui@sumup/circuit-ui
1.0.0

8 months ago

0.8.4

11 months ago

0.8.1

1 year ago

0.8.3

11 months ago

0.8.2

12 months ago

0.8.0

1 year ago

0.7.3

1 year ago

0.7.2

2 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

3 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