Skip to content

Fryuni/nanostores-qwik

Repository files navigation

Nano Stores Qwik

Qwik 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 { component$ } from '@builder.io/qwik'
import { useNanostore$ } from '@nanostores/qwik'

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

export default component$(() => {
  const currentUser = useNanostore$(profile)
  return <header>{currentUser.name}</header>
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published