Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update react #1409

@konsumer

Description

@konsumer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions