#1409·gun

Update react

Author: konsumerCreated Aug 5, 2025Updated Dec 1, 2025

I think the react examples could use an update. I was thinking something like this.

Here are the stuff my demo has:

  • use context to hold gun object
  • use hooks (useGun, and useCallback in examples, but also any other state/effects needed could go here)
  • functional components
  • modern tooling (I am using vite with swc in my example)
  • CI build to github-pages by default

This style can be used for react-native as well as web-react, and makes everything simpler & easier to use.

I am happy to PR anything to modernize it. I noticed docs & examples have old class-components. Is there anywhere else? Where are docs source?