Skip to content

Template for React Aleo Hooks library#822

Open
akalmykov wants to merge 5 commits into
ProvableHQ:mainnetfrom
OrdosHQ:template-react-aleo-hooks
Open

Template for React Aleo Hooks library#822
akalmykov wants to merge 5 commits into
ProvableHQ:mainnetfrom
OrdosHQ:template-react-aleo-hooks

Conversation

@akalmykov

@akalmykov akalmykov commented Dec 3, 2023

Copy link
Copy Markdown

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

@iamalwaysuncomfortable iamalwaysuncomfortable left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor

@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.

4 participants