npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@framjet/cell-react

v0.1.2

Published

A set of React hooks and utilities for seamless integration of @framjet/cell state management library in React applications, providing a simple and efficient way to manage state using cells in React components.

Downloads

6

Readme

FramJet Cell React Utils

A set of React hooks and utilities for seamless integration of @framjet/cell state management library in React applications, providing a simple and efficient way to manage state using cells in React components.

Installation

You can install @framjet/cell-react using your preferred package manager:

npm:

npm install @framjet/cell-react

Yarn:

yarn add @framjet/cell-react

pnpm:

pnpm add @framjet/cell-react

Usage

CellStoreProvider

To use @framjet/cell-react in your React application, you need to wrap your components with the CellStoreProvider. This provider component makes the CellStore available to all the child components.

import { CellStoreProvider } from '@framjet/cell-react';

function App() {
  return (
    <CellStoreProvider>
      {/* Your application components */}
    </CellStoreProvider>
  );
}

useCellValue

The useCellValue hook allows you to read the value of a cell in a React component.

import { cell } from '@framjet/cell';
import { useCellValue } from '@framjet/cell-react';

const countCell = cell(0);

function CountDisplay() {
  const count = useCellValue(countCell);

  return <div>Count: {count}</div>;
}

useSetCell

The useSetCell hook provides a way to update the value of a writable cell in a React component.

import { cell } from '@framjet/cell';
import { useSetCell } from '@framjet/cell-react';

const countCell = cell(0);

function IncrementButton() {
  const setCount = useSetCell(countCell);

  return <button onClick={() => setCount(count => count + 1)}>Increment</button>;
}

useCell

The useCell hook combines the functionality of useCellValue and useSetCell, allowing you to read and update the value of a cell in a React component.

import { cell } from '@framjet/cell';
import { useCell } from '@framjet/cell-react';

const countCell = cell(0);

function Counter() {
  const [count, setCount] = useCell(countCell);

  return (
    <div>
      <span>Count: {count}</span>
      <button onClick={() => setCount(count => count + 1)}>Increment</button>
    </div>
  );
}

Contributing

Contributions to @framjet/cell-react are welcome! If you encounter any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue on the project's repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.