Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template for React Aleo Hooks library #822

Open
wants to merge 5 commits into
base: testnet3
Choose a base branch
from

Conversation

akalmykov
Copy link

@akalmykov akalmykov commented Dec 3, 2023

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:

npm create aleo-app@latest react-aleo-hooks-project -- --template=react-aleo-hooks
npm create aleo-app@latest react-aleo-hooks-ts-project -- --template=react-aleo-hooks-ts

should create two projects with sample apps that can be compiled and run.

thrmdyy and others added 5 commits December 3, 2023 20:44
Signed-off-by: lexx <alexey.kalmykoff@gmail.com>
Signed-off-by: lexx <alexey.kalmykoff@gmail.com>
Signed-off-by: lexx <alexey.kalmykoff@gmail.com>
Signed-off-by: lexx <alexey.kalmykoff@gmail.com>
@akalmykov akalmykov changed the title Template for react Aleo Hooks Template for React Aleo Hooks library Dec 3, 2023
Copy link
Collaborator

@iamalwaysuncomfortable iamalwaysuncomfortable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're currently in network stability mode so don't have the allocation to give this the honest review it deserves, but we will try to prioritize this as soon as we can.

@onetrickwolf
Copy link
Collaborator

@akalmykov very cool template! But this might be better as its own repo and linked in https://github.com/howardwu/awesome-aleo

Would be happy to link it in our documentation too but there might be easier to maintain it in a repo you control. If you think it should be here though open to hearing reasons!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants