Skip to content
Rob edited this page Jul 30, 2019 · 13 revisions

Under Development

https://github.com/rm-rf-etc/react-gun

Motivation

Fully abstract / automate the process of attaching & detaching GUN listeners to any React component using a higher order component. All the developer should do is provide a root node (GUN object) to specify which part of the graph we are binding. Any attributes we want the component to receive from GUN, we auto-attach and inject by reading the function signature of the component, assuming the component is a function component like this:

const Component = ({ gun: { prop1, prop2 } }) => ( ...

No strategy has been decided on yet for class-based components.

Other Ideas

  • a convenient way to lookup root nodes dynamically
  • schema validation to ensure all puts and reads match with the developer's intent
  • framework to provide auto-magic handling of arrays (@amark, thoughts?)

More to come... Plans related to use of gun.user() vs gun.get() need to be added.

This wiki is where all the GUN website documentation comes from.

You can read it here or on the website, but the website has some special features like rendering some markdown extensions to create interactive coding tutorials.

Please feel free to improve the docs itself, we need contributions!

Clone this wiki locally