{
  "id": "task_libraries:state-management/react",
  "path": "/exapedia/react-state-management-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "React state management libraries",
  "answer": [
    {
      "t": "text",
      "text": "React state management libraries hold shared state that components can read without passing props through every level of the component tree. Components use hooks to subscribe to selected store or atom values, where a change to a subscribed value triggers a re-render. These libraries keep data such as the signed-in user or a shopping cart in one place, where every screen of an app reads the same value."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "React state management libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#zustand",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F111"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F112"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F118"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F115"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#redux-toolkit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F127"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tanstack-react-store",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#nanostores",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jotai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xstate",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F197"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mobx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F215"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#valtio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#zustand",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F2"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Direct mutable observables",
            "Statechart runtime"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#zustand",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F111"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F120"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#redux-toolkit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F127"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tanstack-react-store",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#nanostores",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jotai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xstate",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F197"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mobx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F215"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#valtio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "zustand",
          "name": [
            {
              "t": "fact",
              "fact": "F111"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pmndrs/zustand"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/zustand"
            },
            {
              "label": "Docs",
              "href": "https://zustand.docs.pmnd.rs/getting-started/introduction"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Zustand keeps application state in a store created by "
            },
            {
              "t": "code",
              "text": "create"
            },
            {
              "t": "text",
              "text": ", and the store itself is a React hook. A component calls the hook with a selector, such as "
            },
            {
              "t": "code",
              "text": "(state) => state.bears"
            },
            {
              "t": "text",
              "text": ", and renders again only when that selected value changes. No provider component wraps the app, and one store holds plain values, objects, and the functions that update them. Those functions call "
            },
            {
              "t": "code",
              "text": "set"
            },
            {
              "t": "text",
              "text": ", which merges the new values into the existing state one level deep."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F112"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F118"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F114"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://zustand.docs.pmnd.rs/getting-started/introduction",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F111"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F125"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F126"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/xyflow/xyflow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F125"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async function resolveFitView() {\n      const { nodeLookup, panZoom, fitViewOptions, fitViewResolver, width, height, minZoom, maxZoom } = get();\n\n      if (!panZoom) {\n        return;\n      }\n\n      await fitViewport(\n        {\n          nodes: nodeLookup,\n          width,\n          height,\n          panZoom,\n          minZoom,\n          maxZoom,\n        },\n        fitViewOptions\n      );\n\n      fitViewResolver?.resolve(true);\n      /**\n       * wait for the fitViewport to resolve before deleting the resolver,\n       * we want to reuse the old resolver if the user calls fitView again in the mean time\n       */\n      set({ fitViewResolver: null });\n    }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/xyflow/xyflow/blob/1bc405cd113618c17fd181b931a9fe573bec9fee/packages/react/src/store/index.ts#L56-L81",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F124"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20that%20use%20zustand&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F111"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { create } from 'zustand'\n\nconst useBearStore = create((set) => ({\n  bears: 0,\n  increasePopulation: () => set((state) => ({ bears: state.bears + 1 })),\n  removeAllBears: () => set({ bears: 0 }),\n}))\n\nfunction BearCounter() {\n  const bears = useBearStore((state) => state.bears)\n  return <h1>{bears} around here ...</h1>\n}\n\nfunction Controls() {\n  const increasePopulation = useBearStore((state) => state.increasePopulation)\n  return <button onClick={increasePopulation}>one up</button>\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/pmndrs/zustand/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F116"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "redux-toolkit",
          "name": [
            {
              "t": "fact",
              "fact": "F127"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/reduxjs/redux-toolkit"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@reduxjs/toolkit"
            },
            {
              "label": "Docs",
              "href": "https://redux-toolkit.js.org/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Redux Toolkit is the official package for writing Redux logic, and it replaces most of the setup that plain Redux needs. "
            },
            {
              "t": "code",
              "text": "configureStore"
            },
            {
              "t": "text",
              "text": " creates the store, and "
            },
            {
              "t": "code",
              "text": "createSlice"
            },
            {
              "t": "text",
              "text": " takes an initial state and a set of reducer functions and generates the matching action creators. Data from a server goes through RTK Query, a layer built into the package that handles requests, caching, loading state, and refetching. React apps also install React Redux, which the official templates configure alongside it."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://redux-toolkit.js.org/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F127"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ProtonMail/WebClients",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F142"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export const createAsyncModelThunk = <Returned, State, Extra, ThunkArg = void>(\n    prefix: string,\n    {\n        expiry,\n        miss,\n        previous,\n    }: {\n        expiry?: number;\n        miss: (extra: {\n            dispatch: ThunkDispatch<State, Extra, Action>;\n            getState: () => State;\n            extraArgument: Extra;\n            options?: ThunkOptions<ThunkArg>;\n        }) => Promise<Returned>;\n        previous: (extra: {\n            dispatch: ThunkDispatch<State, Extra, Action>;\n            getState: () => State;\n            extraArgument: Extra;\n            options?: ThunkOptions<ThunkArg>;\n        }) => ReducerValue<Returned> | undefined;\n    }\n) => {\n    const pending = createAction(`${prefix}/pending`, () => ({\n        payload: undefined,\n    }));\n\n    const fulfilled = createAction(`${prefix}/fulfilled`, (payload: Returned) => ({\n        payload,\n    }));\n\n    const rejected = createAction(`${prefix}/failed`, (payload: any) => ({\n        payload,\n    }));\n\n    const promiseStore = createPromiseStore<Returned>();\n\n    const thunk = (\n        options?: ThunkOptions<ThunkArg>\n    ): ThunkAction<\n        Promise<Returned>,\n        State,\n        Extra,\n        ReturnType<typeof pending> | ReturnType<typeof fulfilled> | ReturnType<typeof rejected>\n    > => {\n        return (dispatch, getState, extraArgument) => {\n            const select = () => {\n                return previous({ dispatch, getState, extraArgument, options });\n            };\n            const cb = async () => {\n                try {\n                    dispatch(pending());\n                    const value = await miss({ dispatch, getState, extraArgument, options });\n                    dispatch(fulfilled(value));\n                    return value;\n                } catch (error) {\n                    dispatch(rejected(miniSerializeError(error)));\n                    throw error;\n                }\n            };\n            return cacheHelper({ store: promiseStore, select, cb, cache: options?.cache, expiry });\n        };\n    };\n\n    return {\n        pending,\n        fulfilled,\n        rejected,\n        thunk,\n    };\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ProtonMail/WebClients/blob/6ff1096a068ace81ea24a591b7ed8df98ff64db5/packages/redux-utilities/asyncModelThunk/creator.ts#L9-L78",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20that%20use%20%40reduxjs/toolkit&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F127"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { createSlice, configureStore } from '@reduxjs/toolkit';\n\nconst counter = createSlice({\n  name: 'counter',\n  initialState: { value: 0 },\n  reducers: {\n    incremented(state) {\n      state.value += 1;\n    },\n  },\n});\nconst store = configureStore({ reducer: counter.reducer });\nstore.dispatch(counter.actions.incremented());\nconsole.log(store.getState().value);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/reduxjs/redux/contents/docs/introduction/GettingStarted.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "GettingStarted.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F132"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tanstack-react-store",
          "name": [
            {
              "t": "fact",
              "fact": "F144"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/TanStack/store"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@tanstack/react-store"
            },
            {
              "label": "Docs",
              "href": "https://tanstack.com/store/latest/docs/framework/react/quick-start"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "TanStack Store is an immutable, reactive data store that sits at the core of the other TanStack libraries. "
            },
            {
              "t": "code",
              "text": "createStore"
            },
            {
              "t": "text",
              "text": " defines the state, often outside any component, and "
            },
            {
              "t": "code",
              "text": "setState"
            },
            {
              "t": "text",
              "text": " replaces it with an updated copy. In React, "
            },
            {
              "t": "code",
              "text": "useSelector"
            },
            {
              "t": "text",
              "text": " reads one part of the store, and the component renders again only when that part changes. Adapters for Solid, Vue, Angular, and Svelte share the same store code."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://tanstack.com/store/latest/docs/framework/react/quick-start",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F144"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Selector-scoped renders"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "A component that reads one field with "
                },
                {
                  "t": "code",
                  "text": "useSelector"
                },
                {
                  "t": "text",
                  "text": " skips renders caused by other fields."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Renamed read hook"
                }
              ],
              "body": [
                {
                  "t": "code",
                  "text": "useStore"
                },
                {
                  "t": "text",
                  "text": " remains only as a deprecated alias for "
                },
                {
                  "t": "code",
                  "text": "useSelector"
                },
                {
                  "t": "text",
                  "text": ", which new code calls instead."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/TanStack/router",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function useRouterState<\n  TRouter extends AnyRouter = RegisteredRouter,\n  TSelected = unknown,\n  TStructuralSharing extends boolean = boolean,\n>(\n  opts?: UseRouterStateOptions<TRouter, TSelected, TStructuralSharing>,\n): UseRouterStateResult<TRouter, TSelected> {\n  const contextRouter = useRouter<TRouter>({\n    warn: opts?.router === undefined,\n  })\n  const router = opts?.router || contextRouter\n\n  // During SSR we render exactly once and do not need reactivity.\n  // Avoid subscribing to the store (and any structural sharing work) on the server.\n  // The expression must stay inlined in the `if` so bundlers fold the\n  // browser-build constant `isServer = false` and drop this server block.\n  if (isServer ?? router.isServer) {\n    const state = router.stores.__store.get() as RouterState<\n      TRouter['routeTree']\n    >\n    return (opts?.select ? opts.select(state) : state) as UseRouterStateResult<\n      TRouter,\n      TSelected\n    >\n  }\n\n  // eslint-disable-next-line react-hooks/rules-of-hooks -- condition is static\n  return useSelector(\n    router.stores.__store,\n    // eslint-disable-next-line react-hooks/rules-of-hooks -- condition is static\n    useStructuralSharing(opts, router),\n  ) as UseRouterStateResult<TRouter, TSelected>\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/TanStack/router/blob/0b6d4f3f6b42e704555d9ff0014ddbf8b44f8e09/packages/react-router/src/useRouterState.tsx#L45-L77",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40tanstack/react-store%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F144"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { createStore, useSelector } from \"@tanstack/react-store\";\n\n// You can instantiate the store outside of React components too!\nexport const store = createStore({\n  dogs: 0,\n  cats: 0,\n});\n\n// This will only re-render when `state[animal]` changes. If an unrelated store property changes, it won't re-render\nconst Display = ({ animal }) => {\n  const count = useSelector(store, (state) => state[animal]);\n  return <div>{`${animal}: ${count}`}</div>;\n};\n\nconst updateState = (animal) => {\n  store.setState((state) => {\n    return {\n      ...state,\n      [animal]: state[animal] + 1,\n    };\n  });\n};\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://tanstack.com/store/latest/docs/framework/react/quick-start",
                  "label": [
                    {
                      "t": "text",
                      "text": "quick-start"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F149"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "nanostores",
          "name": [
            {
              "t": "fact",
              "fact": "F163"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/nanostores/nanostores"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/nanostores"
            },
            {
              "label": "Docs",
              "href": "https://github.com/nanostores/nanostores#readme"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Nano Stores builds state from many small stores that live in plain modules outside components. An "
            },
            {
              "t": "code",
              "text": "atom"
            },
            {
              "t": "text",
              "text": " holds one value, read with "
            },
            {
              "t": "code",
              "text": "get"
            },
            {
              "t": "text",
              "text": " and changed with "
            },
            {
              "t": "code",
              "text": "set"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "computed"
            },
            {
              "t": "text",
              "text": " derives a new store from others, such as the admins filtered from a list of users. Adapter packages, such as "
            },
            {
              "t": "code",
              "text": "@nanostores/react"
            },
            {
              "t": "text",
              "text": ", connect the same stores to React, Preact, Vue, Svelte, Solid, Lit, and Angular. The core has zero dependencies and stays under one kilobyte, minified and compressed."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/nanostores/nanostores#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F163"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Shared across frameworks"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "One set of stores serves components written in React, Vue, Svelte, and other frameworks through small adapters."
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/withastro/docs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function addCartItem({ id, name, imageSrc }: ItemDisplayInfo) {\n    const existingEntry = cartItems.get()[id];\n    if (existingEntry) {\n      cartItems.setKey(id, {\n        ...existingEntry,\n        quantity: existingEntry.quantity + 1,\n      });\n    } else {\n      cartItems.setKey(\n        id,\n        { id, name, imageSrc, quantity: 1 }\n      );\n    }\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/withastro/docs/blob/697d16abd26476628cf0bf7b932a8920c768720b/src/content/docs/en/recipes/sharing-state-islands.mdx#L396-L409",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F178"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=nanostores%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F163"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { atom } from 'nanostores'\n\nexport const $counter = atom(0)\n\n$counter.set($counter.get() + 1)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/nanostores/nanostores/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F168"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "jotai",
          "name": [
            {
              "t": "fact",
              "fact": "F181"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pmndrs/jotai"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/jotai"
            },
            {
              "label": "Docs",
              "href": "https://jotai.org/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Jotai stores state as atoms, each created by "
            },
            {
              "t": "code",
              "text": "atom"
            },
            {
              "t": "text",
              "text": " with an initial value such as a string, number, object, or array. Inside a component, "
            },
            {
              "t": "code",
              "text": "useAtom"
            },
            {
              "t": "text",
              "text": " returns the value and a setter, the same pair that "
            },
            {
              "t": "code",
              "text": "useState"
            },
            {
              "t": "text",
              "text": " returns. Passing a read function to "
            },
            {
              "t": "code",
              "text": "atom"
            },
            {
              "t": "text",
              "text": " creates a derived atom whose value comes from other atoms, and that function can be async to load data. Code refers to atoms as objects, with no string keys, unlike Recoil."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://jotai.org/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F181"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/excalidraw/excalidraw",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export const useAtomWithInitialValue = <\n  T extends unknown,\n  A extends PrimitiveAtom<T>,\n>(\n  atom: A,\n  initialValue: T | (() => T),\n) => {\n  const [value, setValue] = useAtom(atom);\n\n  useLayoutEffect(() => {\n    if (typeof initialValue === \"function\") {\n      // @ts-ignore\n      setValue(initialValue());\n    } else {\n      setValue(initialValue);\n    }\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  return [value, setValue] as const;\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/excalidraw/excalidraw/blob/82190fb28f58070b34b4017e70c0e2e83701a8e3/excalidraw-app/app-jotai.ts#L17-L37",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F194"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20that%20use%20jotai&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F181"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { atom, useAtom } from 'jotai'\n\n// Create your atoms and derivatives\nconst textAtom = atom('hello')\nconst uppercaseAtom = atom((get) => get(textAtom).toUpperCase())\n\n// Use them anywhere in your app\nconst Input = () => {\n  const [text, setText] = useAtom(textAtom)\n  return <input value={text} onChange={(e) => setText(e.target.value)} />\n}\n\nconst Uppercase = () => {\n  const [uppercase] = useAtom(uppercaseAtom)\n  return <div>Uppercase: {uppercase}</div>\n}\n\n// Now you have the components\nconst MyApp = () => (\n  <div>\n    <Input />\n    <Uppercase />\n  </div>\n)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/pmndrs/jotai/contents/examples/hello/src/App.tsx",
                  "label": [
                    {
                      "t": "text",
                      "text": "App.tsx"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "xstate",
          "name": [
            {
              "t": "fact",
              "fact": "F197"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/statelyai/xstate"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/xstate"
            },
            {
              "label": "Docs",
              "href": "https://stately.ai/docs"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "XState models application logic as state machines and statecharts: named states, the events that move between them, and actors that run them. "
            },
            {
              "t": "code",
              "text": "createMachine"
            },
            {
              "t": "text",
              "text": " defines the states and transitions, "
            },
            {
              "t": "code",
              "text": "createActor"
            },
            {
              "t": "text",
              "text": " starts an actor from that definition, and "
            },
            {
              "t": "code",
              "text": "send"
            },
            {
              "t": "text",
              "text": " delivers an event such as "
            },
            {
              "t": "code",
              "text": "{ type: 'play' }"
            },
            {
              "t": "text",
              "text": ". The package has no runtime dependencies and runs in frontend and backend code. For a plain store without machines, the same project publishes "
            },
            {
              "t": "code",
              "text": "@xstate/store"
            },
            {
              "t": "text",
              "text": "."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://stately.ai/docs",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F197"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Visual editor"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Stately Studio draws machines as diagrams and edits them visually."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Beta in the quick start"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The README's quick start installs "
                },
                {
                  "t": "code",
                  "text": "xstate@beta"
                },
                {
                  "t": "text",
                  "text": ", the next major version, rather than the current stable release."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/processone/fluux-messenger",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "private sendMachineEvent(event: ConnectionMachineEvent, source: string): void {\n    const before = this.getMachineState()\n    this.connectionActor.send(event)\n    const after = this.getMachineState()\n    const beforeText = JSON.stringify(before)\n    const afterText = JSON.stringify(after)\n    const message = `Machine event ${event.type} from ${source}: ${beforeText} -> ${afterText}`\n    this.logTrace(message)\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/processone/fluux-messenger/blob/583459002bde4f21cbb53a3556d81b7bf2a5b7c6/packages/fluux-sdk/src/core/modules/Connection.ts#L362-L370",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F212"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=xstate%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F197"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { createActor, createMachine } from 'xstate';\n\nconst playerMachine = createMachine({\n  initial: 'stopped',\n  states: {\n    stopped: {\n      on: { play: { target: 'playing' } }\n    },\n    playing: {\n      on: {\n        pause: { target: 'paused' },\n        stop: { target: 'stopped' }\n      }\n    },\n    paused: {\n      on: {\n        play: { target: 'playing' },\n        stop: { target: 'stopped' }\n      }\n    }\n  }\n});\n\nconst player = createActor(playerMachine).start();\n\nplayer.send({ type: 'play' });\nconsole.log(player.getSnapshot().value); // 'playing'\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/statelyai/xstate/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F202"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mobx",
          "name": [
            {
              "t": "fact",
              "fact": "F215"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mobxjs/mobx"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/mobx"
            },
            {
              "label": "Docs",
              "href": "https://mobx.js.org/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "MobX tracks which observable values each computation reads, so a React component wrapped in "
            },
            {
              "t": "code",
              "text": "observer"
            },
            {
              "t": "text",
              "text": " renders again only when those values change. "
            },
            {
              "t": "code",
              "text": "makeAutoObservable"
            },
            {
              "t": "text",
              "text": " turns an object's fields into observable state and its methods into actions. Updates are ordinary assignments, made from event handlers, timers, or asynchronous code. Derived values, called computeds, stay cached until the observables they read change. The state lives outside any UI framework, and the React bindings ship in the separate "
            },
            {
              "t": "code",
              "text": "mobx-react-lite"
            },
            {
              "t": "text",
              "text": " package."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://mobx.js.org/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F215"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/getsentry/sentry",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "resetForm() {\n    this.fields.clear();\n    this.errors.clear();\n    this.fieldState.clear();\n    this.snapshots = [];\n    this.initialData = {};\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/getsentry/sentry/blob/78812b4aef3dffe91ebf058268ddc73ffcd498b2/static/app/components/forms/model.tsx#L194-L200",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F228"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20that%20use%20mobx&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F215"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import React from \"react\"\nimport ReactDOM from \"react-dom\"\nimport { makeAutoObservable } from \"mobx\"\nimport { observer } from \"mobx-react-lite\"\n\n// Model the application state.\nconst myTimer = makeAutoObservable({\n    secondsPassed: 0,\n    increase() {\n        this.secondsPassed += 1\n    },\n    reset() {\n        this.secondsPassed = 0\n    }\n})\n\n// Build a \"user interface\" that uses the observable state.\nconst TimerView = observer(({ timer }) => (\n    <button onClick={() => timer.reset()}>Seconds passed: {timer.secondsPassed}</button>\n))\n\nReactDOM.render(<TimerView timer={myTimer} />, document.body)\n\n// Update the 'Seconds passed: X' text every second.\nsetInterval(() => {\n    myTimer.increase()\n}, 1000)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/mobxjs/mobx/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F220"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "valtio",
          "name": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pmndrs/valtio"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/valtio"
            },
            {
              "label": "Docs",
              "href": "https://valtio.dev/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Valtio wraps a plain object in a proxy with "
            },
            {
              "t": "code",
              "text": "proxy"
            },
            {
              "t": "text",
              "text": ", and code changes it by assigning to its fields from anywhere, such as a timer callback. In a component, "
            },
            {
              "t": "code",
              "text": "useSnapshot"
            },
            {
              "t": "text",
              "text": " returns a read-only snapshot and renders the component again only when a field it read has changed. Outside React, "
            },
            {
              "t": "code",
              "text": "subscribe"
            },
            {
              "t": "text",
              "text": " runs a callback on every change to the whole state or to one nested object."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://valtio.dev/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Direct mutation"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Event handlers and plain functions change state by assigning to the proxy's fields."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Snapshots are frozen"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "A method called on a snapshot can't change state. The README recommends arrow functions that change the proxy directly."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/supabase/supabase",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F247"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function createDatabaseSettingsState() {\n  const state = proxy({\n    usePoolerConnection: true,\n    setUsePoolerConnection: (value: boolean) => {\n      state.usePoolerConnection = value\n    },\n    showPoolingModeHelper: false,\n    setShowPoolingModeHelper: (value: boolean) => {\n      state.showPoolingModeHelper = value\n    },\n  })\n\n  return state\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/supabase/supabase/blob/aac6e0aad7b134f4663fa7bba71c5105a7895132/apps/studio/state/database-settings.tsx#L5-L18",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F246"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=valtio%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { proxy, useSnapshot } from 'valtio'\n\nconst state = proxy({ count: 0, text: 'hello' })\n\n// This will re-render on `state.count` change but not on `state.text` change\nfunction Counter() {\n  const snap = useSnapshot(state)\n  return (\n    <div>\n      {snap.count}\n      <button onClick={() => ++state.count}>+1</button>\n    </div>\n  )\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/valtio/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which React state management library should I use?",
      "a": [
        {
          "t": "text",
          "text": "For one shared store read through hooks, "
        },
        {
          "t": "link",
          "href": "#zustand",
          "label": [
            {
              "t": "text",
              "text": "Zustand"
            }
          ]
        },
        {
          "t": "text",
          "text": " needs no provider component. "
        },
        {
          "t": "link",
          "href": "#jotai",
          "label": [
            {
              "t": "text",
              "text": "Jotai"
            }
          ]
        },
        {
          "t": "text",
          "text": " keeps many small values as atoms that combine into derived ones, and "
        },
        {
          "t": "link",
          "href": "#redux-toolkit",
          "label": [
            {
              "t": "text",
              "text": "Redux Toolkit"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds RTK Query for loading and caching server data. "
        },
        {
          "t": "link",
          "href": "#mobx",
          "label": [
            {
              "t": "text",
              "text": "MobX"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#valtio",
          "label": [
            {
              "t": "text",
              "text": "Valtio"
            }
          ]
        },
        {
          "t": "text",
          "text": " let code change state by plain assignment."
        }
      ]
    },
    {
      "q": "Zustand vs Redux: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Zustand stores state in a hook that any component calls without a provider, and the functions that update the state live in the same store. Redux Toolkit is the official way to write Redux logic: "
        },
        {
          "t": "code",
          "text": "createSlice"
        },
        {
          "t": "text",
          "text": " generates actions and reducers, and RTK Query handles server data. An app that already uses Redux keeps its store and moves to Redux Toolkit."
        }
      ]
    },
    {
      "q": "Jotai vs Zustand: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Zustand keeps state in one store, and each component selects the part it reads. Jotai keeps each value in its own atom, used like "
        },
        {
          "t": "code",
          "text": "useState"
        },
        {
          "t": "text",
          "text": ", and builds derived atoms from other atoms. Both libraries work without a provider component."
        }
      ]
    },
    {
      "q": "React Context vs Redux: do I need a state library?",
      "a": [
        {
          "t": "text",
          "text": "React Context passes a value through the component tree with no extra package. Zustand's README lists three differences from Context: less boilerplate, components that render only on changes, and centralized, action-based updates."
        }
      ]
    },
    {
      "q": "What is TanStack Store?",
      "a": [
        {
          "t": "text",
          "text": "TanStack Store is an immutable, reactive data store that sits at the core of the other TanStack libraries. Its React adapter reads state with "
        },
        {
          "t": "code",
          "text": "useSelector"
        },
        {
          "t": "text",
          "text": ", which renders a component again only when the selected value changes."
        }
      ]
    },
    {
      "q": "MobX vs Redux: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "MobX tracks which observable values each component reads, so updates are plain assignments and only the affected components render again. Redux Toolkit routes every change through actions and reducers defined in slices, and its usage guide keeps state to serializable values."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, zustand",
      "display": "Zustand",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, zustand",
      "display": "346.8M",
      "asOf": "2026-11-14"
    },
    "F3": {
      "label": "License, zustand",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, zustand",
      "display": "5.1.0, Nov 2026",
      "asOf": "2026-11-06"
    },
    "F5": {
      "label": "Package release date, zustand",
      "display": "Nov 2026",
      "asOf": "2026-11-06"
    },
    "F6": {
      "label": "Repository stars, zustand",
      "display": "58.9K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "React bindings, zustand",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Derived state, zustand",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Async updates, zustand",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Persistence, zustand",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Output formats, zustand",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "Install, zustand",
      "display": "npm install zustand",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "What it does, zustand",
      "display": "Manages shared React state through stores exposed as hooks.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, zustand",
      "display": "Reads state without provider wrappers",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, zustand",
      "display": "Read shared state through hooks without wrapping components in a provider.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths lead, zustand",
      "display": "Persists state with bundled middleware",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "strengths, zustand",
      "display": "Save selected store data to synchronous or asynchronous storage.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, zustand",
      "display": "Updates only merge one level",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, zustand",
      "display": "Copy nested objects explicitly when changing values inside them.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart, zustand",
      "display": "import { create } from 'zustand'\nimport { persist, createJSONStorage } from 'zustand/middleware'\n\ntype BearStore = {\n  bears: number\n  addABear: () => void\n}\n\nexport const useBearStore = create<BearStore>()(\n  persist(\n    (set, get) => ({\n      bears: 0,\n      addABear: () => set({ bears: get().bears + 1 }),\n    }),\n    {\n      name: 'food-storage', // name of the item in the storage (must be unique)\n      storage: createJSONStorage(() => sessionStorage), // (optional) by default, 'localStorage' is used\n    },\n  ),\n)\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function, zustand",
      "display": "async function resolveFitView() {\n      const { nodeLookup, panZoom, fitViewOptions, fitViewResolver, width, height, minZoom, maxZoom } = get();\n\n      if (!panZoom) {\n        return;\n      }\n\n      await fitViewport(\n        {\n          nodes: nodeLookup,\n          width,\n          height,\n          panZoom,\n          minZoom,\n          maxZoom,\n        },\n        fitViewOptions\n      );\n\n      fitViewResolver?.resolve(true);\n      /**\n       * wait for the fitViewport to resolve before deleting the resolver,\n       * we want to reuse the old resolver if the user calls fitView again in the mean time\n       */\n      set({ fitViewResolver: null });\n    }\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function reference, zustand",
      "display": "index.ts · resolveFitView()",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project repository, zustand",
      "display": "xyflow/xyflow",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project stars, xyflow/xyflow",
      "display": "39.0K",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project push date, xyflow/xyflow",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F26": {
      "label": "Library name, @reduxjs/toolkit",
      "display": "Redux Toolkit",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Monthly downloads, @reduxjs/toolkit",
      "display": "183.5M",
      "asOf": "2026-11-14"
    },
    "F28": {
      "label": "License, @reduxjs/toolkit",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Package release, @reduxjs/toolkit",
      "display": "2.14.0, Nov 2026",
      "asOf": "2026-11-03"
    },
    "F30": {
      "label": "Package release date, @reduxjs/toolkit",
      "display": "Nov 2026",
      "asOf": "2026-11-03"
    },
    "F31": {
      "label": "Repository stars, @reduxjs/toolkit",
      "display": "11.2K",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "React bindings, @reduxjs/toolkit",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Derived state, @reduxjs/toolkit",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Async updates, @reduxjs/toolkit",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Persistence, @reduxjs/toolkit",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, @reduxjs/toolkit",
      "display": "npm install @reduxjs/toolkit",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, @reduxjs/toolkit",
      "display": "Builds Redux stores, state updates, and asynchronous data workflows.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, @reduxjs/toolkit",
      "display": "Includes request caching",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, @reduxjs/toolkit",
      "display": "Use RTK Query for loading, caching, invalidation, and refetching.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, @reduxjs/toolkit",
      "display": "Generates reducers and action creators",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, @reduxjs/toolkit",
      "display": "Generate matching reducers and actions from a slice definition.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, @reduxjs/toolkit",
      "display": "State values should be serializable",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, @reduxjs/toolkit",
      "display": "Keep functions and other non-serializable values outside Redux state.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, @reduxjs/toolkit",
      "display": "Persistence needs an additional package",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, @reduxjs/toolkit",
      "display": "Add a persistence library to save state across page reloads.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Quickstart, @reduxjs/toolkit",
      "display": "import { createSlice } from '@reduxjs/toolkit'\nimport type { PayloadAction } from '@reduxjs/toolkit'\n\ninterface CounterState {\n  value: number\n}\n\nconst initialState = { value: 0 } satisfies CounterState as CounterState\n\nconst counterSlice = createSlice({\n  name: 'counter',\n  initialState,\n  reducers: {\n    increment(state) {\n      state.value++\n    },\n    decrement(state) {\n      state.value--\n    },\n    incrementByAmount(state, action: PayloadAction<number>) {\n      state.value += action.payload\n    },\n  },\n})\n\nexport const { increment, decrement, incrementByAmount } = counterSlice.actions\nexport default counterSlice.reducer\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function, @reduxjs/toolkit",
      "display": "export const createAsyncModelThunk = <Returned, State, Extra, ThunkArg = void>(\n    prefix: string,\n    {\n        expiry,\n        miss,\n        previous,\n    }: {\n        expiry?: number;\n        miss: (extra: {\n            dispatch: ThunkDispatch<State, Extra, Action>;\n            getState: () => State;\n            extraArgument: Extra;\n            options?: ThunkOptions<ThunkArg>;\n        }) => Promise<Returned>;\n        previous: (extra: {\n            dispatch: ThunkDispatch<State, Extra, Action>;\n            getState: () => State;\n            extraArgument: Extra;\n            options?: ThunkOptions<ThunkArg>;\n        }) => ReducerValue<Returned> | undefined;\n    }\n) => {\n    const pending = createAction(`${prefix}/pending`, () => ({\n        payload: undefined,\n    }));\n\n    const fulfilled = createAction(`${prefix}/fulfilled`, (payload: Returned) => ({\n        payload,\n    }));\n\n    const rejected = createAction(`${prefix}/failed`, (payload: any) => ({\n        payload,\n    }));\n\n    const promiseStore = createPromiseStore<Returned>();\n\n    const thunk = (\n        options?: ThunkOptions<ThunkArg>\n    ): ThunkAction<\n        Promise<Returned>,\n        State,\n        Extra,\n        ReturnType<typeof pending> | ReturnType<typeof fulfilled> | ReturnType<typeof rejected>\n    > => {\n        return (dispatch, getState, extraArgument) => {\n            const select = () => {\n                return previous({ dispatch, getState, extraArgument, options });\n            };\n            const cb = async () => {\n                try {\n                    dispatch(pending());\n                    const value = await miss({ dispatch, getState, extraArgument, options });\n                    dispatch(fulfilled(value));\n                    return value;\n                } catch (error) {\n                    dispatch(rejected(miniSerializeError(error)));\n                    throw error;\n                }\n            };\n            return cacheHelper({ store: promiseStore, select, cb, cache: options?.cache, expiry });\n        };\n    };\n\n    return {\n        pending,\n        fulfilled,\n        rejected,\n        thunk,\n    };\n};\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function reference, @reduxjs/toolkit",
      "display": "creator.ts · createAsyncModelThunk()",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project repository, @reduxjs/toolkit",
      "display": "ProtonMail/WebClients",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project stars, ProtonMail/WebClients",
      "display": "5.7K",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project push date, ProtonMail/WebClients",
      "display": "Nov 2026",
      "asOf": "2026-11-15"
    },
    "F52": {
      "label": "Library name, jotai",
      "display": "Jotai",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Monthly downloads, jotai",
      "display": "36.3M",
      "asOf": "2026-11-14"
    },
    "F54": {
      "label": "License, jotai",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Package release, jotai",
      "display": "3.0.2, Nov 2026",
      "asOf": "2026-11-09"
    },
    "F56": {
      "label": "Package release date, jotai",
      "display": "Nov 2026",
      "asOf": "2026-11-09"
    },
    "F57": {
      "label": "Repository stars, jotai",
      "display": "21.3K",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "React bindings, jotai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Derived state, jotai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Async updates, jotai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Persistence, jotai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Output formats, jotai",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Install, jotai",
      "display": "npm install jotai",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "What it does, jotai",
      "display": "Manages small state values, called atoms, and values calculated from them.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, jotai",
      "display": "Derives values from other atoms",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, jotai",
      "display": "Combine existing state values into values calculated from them.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, jotai",
      "display": "Persists individual state values",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, jotai",
      "display": "Use atomWithStorage to save selected values across browser reloads.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, jotai",
      "display": "Atoms need stable references",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, jotai",
      "display": "Reuse atom objects across renders to avoid infinite render loops.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, jotai",
      "display": "Stored values can mismatch HTML",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, jotai",
      "display": "Render storage-dependent content after browser state has loaded.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Quickstart, jotai",
      "display": "import { useAtom } from 'jotai'\nimport { atomWithStorage } from 'jotai/utils'\n\nconst darkModeAtom = atomWithStorage('darkMode', false)\n\nconst Page = () => {\n  const [darkMode, setDarkMode] = useAtom(darkModeAtom)\n\n  return (\n    <>\n      <h1>Welcome to {darkMode ? 'dark' : 'light'} mode!</h1>\n      <button onClick={() => setDarkMode(!darkMode)}>toggle theme</button>\n    </>\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function, jotai",
      "display": "export const useAtomWithInitialValue = <\n  T extends unknown,\n  A extends PrimitiveAtom<T>,\n>(\n  atom: A,\n  initialValue: T | (() => T),\n) => {\n  const [value, setValue] = useAtom(atom);\n\n  useLayoutEffect(() => {\n    if (typeof initialValue === \"function\") {\n      // @ts-ignore\n      setValue(initialValue());\n    } else {\n      setValue(initialValue);\n    }\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  return [value, setValue] as const;\n};\n",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project function reference, jotai",
      "display": "app-jotai.ts · useAtomWithInitialValue()",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project repository, jotai",
      "display": "excalidraw/excalidraw",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project stars, excalidraw/excalidraw",
      "display": "135.7K",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project push date, excalidraw/excalidraw",
      "display": "Nov 2026",
      "asOf": "2026-11-15"
    },
    "F79": {
      "label": "Library name, mobx",
      "display": "MobX",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Monthly downloads, mobx",
      "display": "17.7M",
      "asOf": "2026-11-14"
    },
    "F81": {
      "label": "License, mobx",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Package release, mobx",
      "display": "7.1.7",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Undated package release, mobx",
      "display": "v7.1.7",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Repository stars, mobx",
      "display": "28.2K",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "React bindings, mobx",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Derived state, mobx",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Async updates, mobx",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Persistence, mobx",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Install, mobx",
      "display": "npm install mobx",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "What it does, mobx",
      "display": "Tracks state changes and updates dependent values and interfaces.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, mobx",
      "display": "Tracks component dependencies automatically",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, mobx",
      "display": "Update React components when the state they read changes.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths lead, mobx",
      "display": "Caches values derived from state",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "strengths, mobx",
      "display": "Cache calculated values until the state they read changes.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations lead, mobx",
      "display": "Async updates need action wrappers",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations, mobx",
      "display": "Wrap state changes after await in runInAction.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Quickstart, mobx",
      "display": "import { makeObservable, observable, computed, autorun } from \"mobx\"\n\nclass OrderLine {\n    price = 0\n    amount = 1\n\n    constructor(price) {\n        makeObservable(this, {\n            price: observable,\n            amount: observable,\n            total: computed\n        })\n        this.price = price\n    }\n\n    get total() {\n        console.log(\"Computing...\")\n        return this.price * this.amount\n    }\n}\n\nconst order = new OrderLine(0)\n\nconst stop = autorun(() => {\n    console.log(\"Total: \" + order.total)\n})\n// Computing...\n// Total: 0\n\nconsole.log(order.total)\n// (No recomputing!)\n// 0\n\norder.amount = 5\n// Computing...\n// (No autorun)\n\norder.price = 2\n// Computing...\n// Total: 10\n\nstop()\n\norder.price = 3\n// Neither the computation nor autorun will be recomputed.\n",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need",
      "display": "Shared state without provider wrappers",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Why choose zustand",
      "display": "hook-based store access",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need in introduction",
      "display": "shared state without provider wrappers",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need",
      "display": "Small composable state values",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose jotai",
      "display": "values derived from atoms",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "small composable state values",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "Application data loading and caching",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose @reduxjs/toolkit",
      "display": "built-in request caching",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "application data loading and caching",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need",
      "display": "Automatically tracked state dependencies",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose mobx",
      "display": "observable component updates",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "automatically tracked state dependencies",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Page introduction",
      "display": "React state management libraries let application developers manage shared application state.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Library name, zustand",
      "display": "Zustand",
      "asOf": "2026-11-19"
    },
    "F112": {
      "label": "Monthly downloads, zustand",
      "display": "351.6M",
      "asOf": "2026-11-19"
    },
    "F113": {
      "label": "License, zustand",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F114": {
      "label": "Package release, zustand",
      "display": "5.1.0",
      "asOf": "2026-11-19"
    },
    "F115": {
      "label": "Package release date, zustand",
      "display": "Nov 2026",
      "asOf": "2026-11-19"
    },
    "F116": {
      "label": "Install, zustand",
      "display": "npm install zustand",
      "asOf": "2026-11-19"
    },
    "F117": {
      "label": "Quickstart, zustand",
      "display": "import { create } from 'zustand'\n\nconst useBearStore = create((set) => ({\n  bears: 0,\n  increasePopulation: () => set((state) => ({ bears: state.bears + 1 })),\n  removeAllBears: () => set({ bears: 0 }),\n}))\n\nfunction BearCounter() {\n  const bears = useBearStore((state) => state.bears)\n  return <h1>{bears} around here ...</h1>\n}\n\nfunction Controls() {\n  const increasePopulation = useBearStore((state) => state.increasePopulation)\n  return <button onClick={increasePopulation}>one up</button>\n}\n",
      "asOf": "2026-11-19"
    },
    "F118": {
      "label": "Repository stars, zustand",
      "display": "58.9K",
      "asOf": "2026-11-19"
    },
    "F119": {
      "label": "Direct mutable observables, zustand",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F120": {
      "label": "Statechart runtime, zustand",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F121": {
      "label": "State model, zustand",
      "display": "Shared selector-based external store with set/get actions and optional middleware.",
      "asOf": "2026-11-19"
    },
    "F122": {
      "label": "Reviewed project workflow, zustand",
      "display": "Read store state before asynchronous viewport fitting, then clear its resolver with a partial update.",
      "asOf": "2026-11-19"
    },
    "F123": {
      "label": "Project function, zustand",
      "display": "async function resolveFitView() {\n      const { nodeLookup, panZoom, fitViewOptions, fitViewResolver, width, height, minZoom, maxZoom } = get();\n\n      if (!panZoom) {\n        return;\n      }\n\n      await fitViewport(\n        {\n          nodes: nodeLookup,\n          width,\n          height,\n          panZoom,\n          minZoom,\n          maxZoom,\n        },\n        fitViewOptions\n      );\n\n      fitViewResolver?.resolve(true);\n      /**\n       * wait for the fitViewport to resolve before deleting the resolver,\n       * we want to reuse the old resolver if the user calls fitView again in the mean time\n       */\n      set({ fitViewResolver: null });\n    }\n",
      "asOf": "2026-11-19"
    },
    "F124": {
      "label": "Project source file, zustand",
      "display": "packages/react/src/store/index.ts",
      "asOf": "2026-11-19"
    },
    "F125": {
      "label": "Project full_name, zustand",
      "display": "xyflow/xyflow",
      "asOf": "2026-11-19"
    },
    "F126": {
      "label": "Project stargazers_count, zustand",
      "display": "39.1K",
      "asOf": "2026-11-19"
    },
    "F127": {
      "label": "Library name, @reduxjs/toolkit",
      "display": "Redux Toolkit",
      "asOf": "2026-11-19"
    },
    "F128": {
      "label": "Monthly downloads, @reduxjs/toolkit",
      "display": "186.4M",
      "asOf": "2026-11-19"
    },
    "F129": {
      "label": "License, @reduxjs/toolkit",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F130": {
      "label": "Package release, @reduxjs/toolkit",
      "display": "2.14.0",
      "asOf": "2026-11-19"
    },
    "F131": {
      "label": "Package release date, @reduxjs/toolkit",
      "display": "Nov 2026",
      "asOf": "2026-11-19"
    },
    "F132": {
      "label": "Install, @reduxjs/toolkit",
      "display": "npm install @reduxjs/toolkit",
      "asOf": "2026-11-19"
    },
    "F133": {
      "label": "Quickstart, @reduxjs/toolkit",
      "display": "import { createSlice, configureStore } from '@reduxjs/toolkit';\n\nconst counter = createSlice({\n  name: 'counter',\n  initialState: { value: 0 },\n  reducers: {\n    incremented(state) {\n      state.value += 1;\n    },\n  },\n});\nconst store = configureStore({ reducer: counter.reducer });\nstore.dispatch(counter.actions.incremented());\nconsole.log(store.getState().value);\n",
      "asOf": "2026-11-19"
    },
    "F134": {
      "label": "Repository stars, @reduxjs/toolkit",
      "display": "11.2K",
      "asOf": "2026-11-19"
    },
    "F135": {
      "label": "Direct mutable observables, @reduxjs/toolkit",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F136": {
      "label": "Statechart runtime, @reduxjs/toolkit",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F137": {
      "label": "State model, @reduxjs/toolkit",
      "display": "Redux reducer/action architecture with store configuration, slices, middleware, and optional query tooling.",
      "asOf": "2026-11-19"
    },
    "F138": {
      "label": "Reviewed project workflow, @reduxjs/toolkit",
      "display": "Create typed pending/fulfilled/failed action creators for a reusable cached async-model thunk.",
      "asOf": "2026-11-19"
    },
    "F139": {
      "label": "Redux distribution choice, @reduxjs/toolkit",
      "display": "Official Redux guidance recommends Redux Toolkit for new Redux logic; redux and react-redux counts are retained separately as core/binding companions, not additional rows or summed downloads.",
      "asOf": "2026-11-19"
    },
    "F140": {
      "label": "Project function, @reduxjs/toolkit",
      "display": "export const createAsyncModelThunk = <Returned, State, Extra, ThunkArg = void>(\n    prefix: string,\n    {\n        expiry,\n        miss,\n        previous,\n    }: {\n        expiry?: number;\n        miss: (extra: {\n            dispatch: ThunkDispatch<State, Extra, Action>;\n            getState: () => State;\n            extraArgument: Extra;\n            options?: ThunkOptions<ThunkArg>;\n        }) => Promise<Returned>;\n        previous: (extra: {\n            dispatch: ThunkDispatch<State, Extra, Action>;\n            getState: () => State;\n            extraArgument: Extra;\n            options?: ThunkOptions<ThunkArg>;\n        }) => ReducerValue<Returned> | undefined;\n    }\n) => {\n    const pending = createAction(`${prefix}/pending`, () => ({\n        payload: undefined,\n    }));\n\n    const fulfilled = createAction(`${prefix}/fulfilled`, (payload: Returned) => ({\n        payload,\n    }));\n\n    const rejected = createAction(`${prefix}/failed`, (payload: any) => ({\n        payload,\n    }));\n\n    const promiseStore = createPromiseStore<Returned>();\n\n    const thunk = (\n        options?: ThunkOptions<ThunkArg>\n    ): ThunkAction<\n        Promise<Returned>,\n        State,\n        Extra,\n        ReturnType<typeof pending> | ReturnType<typeof fulfilled> | ReturnType<typeof rejected>\n    > => {\n        return (dispatch, getState, extraArgument) => {\n            const select = () => {\n                return previous({ dispatch, getState, extraArgument, options });\n            };\n            const cb = async () => {\n                try {\n                    dispatch(pending());\n                    const value = await miss({ dispatch, getState, extraArgument, options });\n                    dispatch(fulfilled(value));\n                    return value;\n                } catch (error) {\n                    dispatch(rejected(miniSerializeError(error)));\n                    throw error;\n                }\n            };\n            return cacheHelper({ store: promiseStore, select, cb, cache: options?.cache, expiry });\n        };\n    };\n\n    return {\n        pending,\n        fulfilled,\n        rejected,\n        thunk,\n    };\n};\n",
      "asOf": "2026-11-19"
    },
    "F141": {
      "label": "Project source file, @reduxjs/toolkit",
      "display": "packages/redux-utilities/asyncModelThunk/creator.ts",
      "asOf": "2026-11-19"
    },
    "F142": {
      "label": "Project full_name, @reduxjs/toolkit",
      "display": "ProtonMail/WebClients",
      "asOf": "2026-11-19"
    },
    "F143": {
      "label": "Project stargazers_count, @reduxjs/toolkit",
      "display": "5.7K",
      "asOf": "2026-11-19"
    },
    "F144": {
      "label": "Library name, @tanstack/react-store",
      "display": "TanStack Store",
      "asOf": "2026-11-19"
    },
    "F145": {
      "label": "Monthly downloads, @tanstack/react-store",
      "display": "139.0M",
      "asOf": "2026-11-19"
    },
    "F146": {
      "label": "License, @tanstack/react-store",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F147": {
      "label": "Package release, @tanstack/react-store",
      "display": "0.11.2",
      "asOf": "2026-11-19"
    },
    "F148": {
      "label": "Package release date, @tanstack/react-store",
      "display": "Sep 2026",
      "asOf": "2026-11-19"
    },
    "F149": {
      "label": "Install, @tanstack/react-store",
      "display": "npm install @tanstack/react-store",
      "asOf": "2026-11-19"
    },
    "F150": {
      "label": "Quickstart, @tanstack/react-store",
      "display": "import { createStore, useSelector } from \"@tanstack/react-store\";\n\nexport const store = createStore({\n  dogs: 0,\n  cats: 0,\n});\n",
      "asOf": "2026-11-19"
    },
    "F151": {
      "label": "Official description, @tanstack/react-store",
      "display": "Framework agnostic type-safe store w/ reactive framework adapters",
      "asOf": "2026-11-19"
    },
    "F152": {
      "label": "Quickstart source file, @tanstack/react-store",
      "display": "docs/framework/react/quick-start.md",
      "asOf": "2026-11-19"
    },
    "F153": {
      "label": "Repository stars, @tanstack/react-store",
      "display": "916",
      "asOf": "2026-11-19"
    },
    "F154": {
      "label": "Direct mutable observables, @tanstack/react-store",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F155": {
      "label": "Statechart runtime, @tanstack/react-store",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F156": {
      "label": "State model, @tanstack/react-store",
      "display": "Reactive atoms/stores with React useSelector over get/subscribe sources; useStore remains a deprecated alias.",
      "asOf": "2026-11-19"
    },
    "F157": {
      "label": "Reviewed project workflow, @tanstack/react-store",
      "display": "Subscribe to selected router state in the browser while bypassing reactivity on the server.",
      "asOf": "2026-11-19"
    },
    "F158": {
      "label": "Current React read API, @tanstack/react-store",
      "display": "useSelector is the primary React read hook; useStore is a deprecated alias. The source contract is get()/subscribe()->Subscription, not an unverified old state-only Store shape.",
      "asOf": "2026-11-19"
    },
    "F159": {
      "label": "Project function, @tanstack/react-store",
      "display": "export function useRouterState<\n  TRouter extends AnyRouter = RegisteredRouter,\n  TSelected = unknown,\n  TStructuralSharing extends boolean = boolean,\n>(\n  opts?: UseRouterStateOptions<TRouter, TSelected, TStructuralSharing>,\n): UseRouterStateResult<TRouter, TSelected> {\n  const contextRouter = useRouter<TRouter>({\n    warn: opts?.router === undefined,\n  })\n  const router = opts?.router || contextRouter\n\n  // During SSR we render exactly once and do not need reactivity.\n  // Avoid subscribing to the store (and any structural sharing work) on the server.\n  // The expression must stay inlined in the `if` so bundlers fold the\n  // browser-build constant `isServer = false` and drop this server block.\n  if (isServer ?? router.isServer) {\n    const state = router.stores.__store.get() as RouterState<\n      TRouter['routeTree']\n    >\n    return (opts?.select ? opts.select(state) : state) as UseRouterStateResult<\n      TRouter,\n      TSelected\n    >\n  }\n\n  // eslint-disable-next-line react-hooks/rules-of-hooks -- condition is static\n  return useSelector(\n    router.stores.__store,\n    // eslint-disable-next-line react-hooks/rules-of-hooks -- condition is static\n    useStructuralSharing(opts, router),\n  ) as UseRouterStateResult<TRouter, TSelected>\n}\n",
      "asOf": "2026-11-19"
    },
    "F160": {
      "label": "Project source file, @tanstack/react-store",
      "display": "packages/react-router/src/useRouterState.tsx",
      "asOf": "2026-11-19"
    },
    "F161": {
      "label": "Project full_name, @tanstack/react-store",
      "display": "TanStack/router",
      "asOf": "2026-11-19"
    },
    "F162": {
      "label": "Project stargazers_count, @tanstack/react-store",
      "display": "15.3K",
      "asOf": "2026-11-19"
    },
    "F163": {
      "label": "Library name, nanostores",
      "display": "Nano Stores",
      "asOf": "2026-11-19"
    },
    "F164": {
      "label": "Monthly downloads, nanostores",
      "display": "76.6M",
      "asOf": "2026-11-19"
    },
    "F165": {
      "label": "License, nanostores",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F166": {
      "label": "Package release, nanostores",
      "display": "1.5.5",
      "asOf": "2026-11-19"
    },
    "F167": {
      "label": "Package release date, nanostores",
      "display": "Oct 2026",
      "asOf": "2026-11-19"
    },
    "F168": {
      "label": "Install, nanostores",
      "display": "npm install nanostores",
      "asOf": "2026-11-19"
    },
    "F169": {
      "label": "Quickstart, nanostores",
      "display": "import { atom } from 'nanostores'\n\nexport const $counter = atom(0)\n\n$counter.set($counter.get() + 1)\n",
      "asOf": "2026-11-19"
    },
    "F170": {
      "label": "Official description, nanostores",
      "display": "A tiny (351 bytes) state manager for React/Preact/Vue/Svelte with many atomic tree-shakable stores",
      "asOf": "2026-11-19"
    },
    "F171": {
      "label": "Quickstart source file, nanostores",
      "display": "README.md",
      "asOf": "2026-11-19"
    },
    "F172": {
      "label": "Repository stars, nanostores",
      "display": "7.6K",
      "asOf": "2026-11-19"
    },
    "F173": {
      "label": "Direct mutable observables, nanostores",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F174": {
      "label": "Statechart runtime, nanostores",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F175": {
      "label": "State model, nanostores",
      "display": "Small atomic/map/computed stores with separate framework rendering adapters.",
      "asOf": "2026-11-19"
    },
    "F176": {
      "label": "Reviewed project workflow, nanostores",
      "display": "Insert a cart item or increase its quantity with map.get/setKey.",
      "asOf": "2026-11-19"
    },
    "F177": {
      "label": "Project function, nanostores",
      "display": "export function addCartItem({ id, name, imageSrc }: ItemDisplayInfo) {\n    const existingEntry = cartItems.get()[id];\n    if (existingEntry) {\n      cartItems.setKey(id, {\n        ...existingEntry,\n        quantity: existingEntry.quantity + 1,\n      });\n    } else {\n      cartItems.setKey(\n        id,\n        { id, name, imageSrc, quantity: 1 }\n      );\n    }\n  }\n",
      "asOf": "2026-11-19"
    },
    "F178": {
      "label": "Project source file, nanostores",
      "display": "src/content/docs/en/recipes/sharing-state-islands.mdx",
      "asOf": "2026-11-19"
    },
    "F179": {
      "label": "Project full_name, nanostores",
      "display": "withastro/docs",
      "asOf": "2026-11-19"
    },
    "F180": {
      "label": "Project stargazers_count, nanostores",
      "display": "1.7K",
      "asOf": "2026-11-19"
    },
    "F181": {
      "label": "Library name, jotai",
      "display": "Jotai",
      "asOf": "2026-11-19"
    },
    "F182": {
      "label": "Monthly downloads, jotai",
      "display": "36.9M",
      "asOf": "2026-11-19"
    },
    "F183": {
      "label": "License, jotai",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F184": {
      "label": "Package release, jotai",
      "display": "3.0.2",
      "asOf": "2026-11-19"
    },
    "F185": {
      "label": "Package release date, jotai",
      "display": "Nov 2026",
      "asOf": "2026-11-19"
    },
    "F186": {
      "label": "Install, jotai",
      "display": "npm install jotai",
      "asOf": "2026-11-19"
    },
    "F187": {
      "label": "Quickstart, jotai",
      "display": "import { atom, useAtom } from 'jotai'\n\n// Create your atoms and derivatives\nconst textAtom = atom('hello')\nconst uppercaseAtom = atom((get) => get(textAtom).toUpperCase())\n\n// Use them anywhere in your app\nconst Input = () => {\n  const [text, setText] = useAtom(textAtom)\n  return <input value={text} onChange={(e) => setText(e.target.value)} />\n}\n\nconst Uppercase = () => {\n  const [uppercase] = useAtom(uppercaseAtom)\n  return <div>Uppercase: {uppercase}</div>\n}\n\n// Now you have the components\nconst MyApp = () => (\n  <div>\n    <Input />\n    <Uppercase />\n  </div>\n)\n",
      "asOf": "2026-11-19"
    },
    "F188": {
      "label": "Repository stars, jotai",
      "display": "21.3K",
      "asOf": "2026-11-19"
    },
    "F189": {
      "label": "Direct mutable observables, jotai",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F190": {
      "label": "Statechart runtime, jotai",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F191": {
      "label": "State model, jotai",
      "display": "Primitive/derived writable atoms and React hooks; values live in stores rather than in atom configuration objects.",
      "asOf": "2026-11-19"
    },
    "F192": {
      "label": "Reviewed project workflow, jotai",
      "display": "Initialize a writable atom after component mount while returning its value/setter pair.",
      "asOf": "2026-11-19"
    },
    "F193": {
      "label": "Project function, jotai",
      "display": "export const useAtomWithInitialValue = <\n  T extends unknown,\n  A extends PrimitiveAtom<T>,\n>(\n  atom: A,\n  initialValue: T | (() => T),\n) => {\n  const [value, setValue] = useAtom(atom);\n\n  useLayoutEffect(() => {\n    if (typeof initialValue === \"function\") {\n      // @ts-ignore\n      setValue(initialValue());\n    } else {\n      setValue(initialValue);\n    }\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  return [value, setValue] as const;\n};\n",
      "asOf": "2026-11-19"
    },
    "F194": {
      "label": "Project source file, jotai",
      "display": "excalidraw-app/app-jotai.ts",
      "asOf": "2026-11-19"
    },
    "F195": {
      "label": "Project full_name, jotai",
      "display": "excalidraw/excalidraw",
      "asOf": "2026-11-19"
    },
    "F196": {
      "label": "Project stargazers_count, jotai",
      "display": "135.9K",
      "asOf": "2026-11-19"
    },
    "F197": {
      "label": "Library name, xstate",
      "display": "XState",
      "asOf": "2026-11-19"
    },
    "F198": {
      "label": "Monthly downloads, xstate",
      "display": "31.2M",
      "asOf": "2026-11-19"
    },
    "F199": {
      "label": "License, xstate",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F200": {
      "label": "Package release, xstate",
      "display": "5.33.4",
      "asOf": "2026-11-19"
    },
    "F201": {
      "label": "Package release date, xstate",
      "display": "Nov 2026",
      "asOf": "2026-11-19"
    },
    "F202": {
      "label": "Install, xstate",
      "display": "npm install xstate",
      "asOf": "2026-11-19"
    },
    "F203": {
      "label": "Quickstart, xstate",
      "display": "import { createMachine, createActor } from 'xstate';\n\nconst toggleMachine = createMachine({\n  // Machine code from above\n});\n\n// Create an actor that you can send events to.\n// Note: the actor is not started yet!\nconst actor = createActor(toggleMachine);\n\n// Subscribe to snapshots (emitted state changes) from the actor\nactor.subscribe((snapshot) => {\n  console.log('Value:', snapshot.value);\n});\n\n// Start the actor\nactor.start(); // logs 'Inactive'\n\n// Send events\nactor.send({ type: 'toggle' }); // logs 'Active'\nactor.send({ type: 'toggle' }); // logs 'Inactive'\n",
      "asOf": "2026-11-19"
    },
    "F204": {
      "label": "Official description, xstate",
      "display": "Finite State Machines and Statecharts for the Modern Web.",
      "asOf": "2026-11-19"
    },
    "F205": {
      "label": "Quickstart source file, xstate",
      "display": "Quick start",
      "asOf": "2026-11-19"
    },
    "F206": {
      "label": "Repository stars, xstate",
      "display": "30.5K",
      "asOf": "2026-11-19"
    },
    "F207": {
      "label": "Direct mutable observables, xstate",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F208": {
      "label": "Statechart runtime, xstate",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F209": {
      "label": "State model, xstate",
      "display": "State machines/statecharts and actors driven by typed event objects.",
      "asOf": "2026-11-19"
    },
    "F210": {
      "label": "Reviewed project workflow, xstate",
      "display": "Send an event to a running connection-state actor and log the surrounding state transitions.",
      "asOf": "2026-11-19"
    },
    "F211": {
      "label": "Project function, xstate",
      "display": "private sendMachineEvent(event: ConnectionMachineEvent, source: string): void {\n    const before = this.getMachineState()\n    this.connectionActor.send(event)\n    const after = this.getMachineState()\n    const beforeText = JSON.stringify(before)\n    const afterText = JSON.stringify(after)\n    const message = `Machine event ${event.type} from ${source}: ${beforeText} -> ${afterText}`\n    this.logTrace(message)\n  }\n",
      "asOf": "2026-11-19"
    },
    "F212": {
      "label": "Project source file, xstate",
      "display": "packages/fluux-sdk/src/core/modules/Connection.ts",
      "asOf": "2026-11-19"
    },
    "F213": {
      "label": "Project full_name, xstate",
      "display": "processone/fluux-messenger",
      "asOf": "2026-11-19"
    },
    "F214": {
      "label": "Project stargazers_count, xstate",
      "display": "450",
      "asOf": "2026-11-19"
    },
    "F215": {
      "label": "Library name, mobx",
      "display": "MobX",
      "asOf": "2026-11-19"
    },
    "F216": {
      "label": "Monthly downloads, mobx",
      "display": "17.7M",
      "asOf": "2026-11-19"
    },
    "F217": {
      "label": "License, mobx",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F218": {
      "label": "Package release, mobx",
      "display": "7.1.7",
      "asOf": "2026-11-19"
    },
    "F219": {
      "label": "Package release date, mobx",
      "display": "Nov 2026",
      "asOf": "2026-11-19"
    },
    "F220": {
      "label": "Install, mobx",
      "display": "npm install mobx",
      "asOf": "2026-11-19"
    },
    "F221": {
      "label": "Quickstart, mobx",
      "display": "import { observable } from \"mobx\"\n\nconst todosById = observable({\n    \"TODO-123\": {\n        title: \"find a decent task management system\",\n        done: false\n    }\n})\n\ntodosById[\"TODO-456\"] = {\n    title: \"close all tickets older than two weeks\",\n    done: true\n}\n\nconst tags = observable([\"high prio\", \"medium prio\", \"low prio\"])\ntags.push(\"prio: for fun\")\n",
      "asOf": "2026-11-19"
    },
    "F222": {
      "label": "Repository stars, mobx",
      "display": "28.2K",
      "asOf": "2026-11-19"
    },
    "F223": {
      "label": "Direct mutable observables, mobx",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F224": {
      "label": "Statechart runtime, mobx",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F225": {
      "label": "State model, mobx",
      "display": "Observable objects/classes, computed values, and actions/reactions, including explicit async action boundaries.",
      "asOf": "2026-11-19"
    },
    "F226": {
      "label": "Reviewed project workflow, mobx",
      "display": "Commit successful async-fetch results or an error status inside explicit runInAction boundaries.",
      "asOf": "2026-11-19"
    },
    "F227": {
      "label": "Project function, mobx",
      "display": "resetForm() {\n    this.fields.clear();\n    this.errors.clear();\n    this.fieldState.clear();\n    this.snapshots = [];\n    this.initialData = {};\n  }\n",
      "asOf": "2026-11-19"
    },
    "F228": {
      "label": "Project source file, mobx",
      "display": "static/app/components/forms/model.tsx",
      "asOf": "2026-11-19"
    },
    "F229": {
      "label": "Project full_name, mobx",
      "display": "getsentry/sentry",
      "asOf": "2026-11-19"
    },
    "F230": {
      "label": "Project stargazers_count, mobx",
      "display": "45.8K",
      "asOf": "2026-11-19"
    },
    "F231": {
      "label": "Library name, valtio",
      "display": "Valtio",
      "asOf": "2026-11-19"
    },
    "F232": {
      "label": "Monthly downloads, valtio",
      "display": "12.2M",
      "asOf": "2026-11-19"
    },
    "F233": {
      "label": "License, valtio",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F234": {
      "label": "Package release, valtio",
      "display": "2.3.2",
      "asOf": "2026-11-19"
    },
    "F235": {
      "label": "Package release date, valtio",
      "display": "May 2026",
      "asOf": "2026-11-19"
    },
    "F236": {
      "label": "Install, valtio",
      "display": "npm install valtio",
      "asOf": "2026-11-19"
    },
    "F237": {
      "label": "Quickstart, valtio",
      "display": "import { proxy, useSnapshot } from 'valtio'\n\nconst state = proxy({\n  count: 0,\n  inc() {\n    ++this.count\n  },\n})\nstate.inc() // `this` points to `state` and it works fine\nconst snap = useSnapshot(state)\nsnap.inc() // `this` points to `snap` and it doesn't work because snapshot is frozen\n",
      "asOf": "2026-11-19"
    },
    "F238": {
      "label": "Official description, valtio",
      "display": "🧙 Valtio makes proxy-state simple for React and Vanilla",
      "asOf": "2026-11-19"
    },
    "F239": {
      "label": "Quickstart source file, valtio",
      "display": "README.md",
      "asOf": "2026-11-19"
    },
    "F240": {
      "label": "Repository stars, valtio",
      "display": "10.2K",
      "asOf": "2026-11-19"
    },
    "F241": {
      "label": "Direct mutable observables, valtio",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F242": {
      "label": "Statechart runtime, valtio",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F243": {
      "label": "State model, valtio",
      "display": "Mutable proxy state plus read-only tracked snapshots for React rendering.",
      "asOf": "2026-11-19"
    },
    "F244": {
      "label": "Reviewed project workflow, valtio",
      "display": "Read a tracked proxy snapshot and derive filtered todo results without mutating the snapshot.",
      "asOf": "2026-11-19"
    },
    "F245": {
      "label": "Project function, valtio",
      "display": "export function createDatabaseSettingsState() {\n  const state = proxy({\n    usePoolerConnection: true,\n    setUsePoolerConnection: (value: boolean) => {\n      state.usePoolerConnection = value\n    },\n    showPoolingModeHelper: false,\n    setShowPoolingModeHelper: (value: boolean) => {\n      state.showPoolingModeHelper = value\n    },\n  })\n\n  return state\n}\n",
      "asOf": "2026-11-19"
    },
    "F246": {
      "label": "Project source file, valtio",
      "display": "apps/studio/state/database-settings.tsx",
      "asOf": "2026-11-19"
    },
    "F247": {
      "label": "Project full_name, valtio",
      "display": "supabase/supabase",
      "asOf": "2026-11-19"
    },
    "F248": {
      "label": "Project stargazers_count, valtio",
      "display": "115.1K",
      "asOf": "2026-11-19"
    },
    "F249": {
      "label": "Pick alternative reason, tanstack store",
      "display": "if the store must also serve other frameworks",
      "asOf": "2026-11-17"
    },
    "F250": {
      "label": "Pick alternative reason, nanostores",
      "display": "if stores must run outside React too",
      "asOf": "2026-11-17"
    },
    "F251": {
      "label": "Pick alternative reason, xstate",
      "display": "if logic follows explicit states and events",
      "asOf": "2026-11-17"
    },
    "F252": {
      "label": "Pick alternative reason, valtio",
      "display": "if state is one mutable object",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-19",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "React state management libraries Zustand Jotai Redux Toolkit MobX code examples derived state persistence",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
