Template for React Aleo Hooks library #822
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
We propose to add a new
create-aleo-app
template with Aleo Hooks library.React Hooks are functional components that isolate the reusable part from app business logic. Hooks make it easy to reuse stateful logic between components and develop complex dApps.
Aleo Hooks is a library that offers a set of hooks for common operations, e.g. connecting a wallet, sending a transaction, fetching records. Aleo Hooks aims to be a wallet agnostic library that will simplify developing Aleo React dApps. In the first version, Leo wallet is supported. Support for the Puzzle wallet is planned next.
Test Plan
There are two templates - for TS and JS.
Exectuing:
should create two projects with sample apps that can be compiled and run.