Karan's Streams

Search

SearchSearch
      • 2024-05-18
        • headless commerce
          • lesson 1
          • GTM
        • Advanced Deepweb crawler
        • Ai Agents
        • ai painting
        • Anti Signals
        • Automating Call Center
        • B2B chat App
        • bare-metal
        • Bloom Filters
        • Bridge Pattern
        • building JSON parser
        • client side modal deployment
        • code monkeys
        • concurrency
        • creating neural search based search engine
        • DAG
        • Database schema and architecture mistakes and learnings
        • distributed systems-course
        • encryption
        • English speaking coach
        • exploits & reverse engineering
        • failure-resume
        • fixing new skill issues
        • garba-programming-language
        • good engineers
        • good people
        • guide to what you need to become a "hacker"
        • hacking-art-of-exploitation
        • how api are version control ?
        • How Global state works in react?
        • How to create APK from expo react-native app
        • how vite works ?
        • html5bytebeat
        • hypervisor
        • java chip8 emulator
        • javascript-rants
        • jit
        • LSM Tree
        • MersenneTwister19937
        • Minecraft redstone llm budy
        • Nodejs observability
        • Nyrkiö
        • omnitrix
        • programmer i admire
        • programming books
        • Promises in js
        • prompts
        • Quotes
        • rust
        • self help books are mirage
        • sentry error and LLm based github PR
        • serverlesss
        • Short form Ai story teller
        • sicp
        • so you know yarvin right?
        • space-rag-app
        • this or nothing
        • to read book
        • toc
        • todo.md
        • tour-guide-ai-agent-software
        • ts-notes
        • Understanding authentication from first principle
        • Useful React Native lib
        • using sys calls to detect spam
        • vibe board
        • what is problem in ORM?
        • what's the difference between school and clg?
        • wtf is sync, async, multi threading, multi processing?
      • good projects
      • Untitled
      • Untitled 1
      • vitamin M
    Home

    ❯

    Thoughts

    ❯

    How Global state works in react?

    How Global state works in react?

    Jul 17, 2024, 1 min read

    • #seed

    where the fuck actually data is getting stored??

    how to create my own?

    are most of the global state management lib just wrapper of useSyncExternalStore?

    useful resources helped me to understand this better:

    • https://judehunter.dev/blog/how-to-write-your-own-state-management-library
    • https://dev.to/paripsky/build-your-own-react-state-management-library-in-under-40-lines-of-code-with-typescript-support-hji
    • https://react.dev/reference/react/useSyncExternalStore#subscribing-to-a-browser-api
    • https://judehunter.dev/blog/how-to-write-your-own-state-management-library
    • https://www.youtube.com/watch?v=OdIYFt5zyQ8
    • https://vijitail.dev/blog/basic-state-management-library-using-vanilla-javascript
    • https://frontendmastery.com/posts/the-new-wave-of-react-state-management/

    Graph View

    Backlinks

    • No backlinks found

    Created with Quartz v4.2.2 © 2024

    • GitHub
    • Twitter