Build Web3 apps with React

Rate this content
Bookmark

The workshop is designed to help Web2 developers start building for Web3 using the Hyperverse. The Hyperverse is an open marketplace of community-built, audited, easy to discover smart modules. Our goal - to make it easy for React developers to build Web3 apps without writing a single line of smart contract code. Think “npm for smart contracts.”


Learn more about the Hyperverse here.


We will go over all the blockchain/crypto basics you need to know to start building on the Hyperverse, so you do not need to have any previous knowledge about the Web3 space. You just need to have React experience.

This workshop has been presented at React Summit 2022, check out the latest edition of this React Conference.

FAQ

The Hyperverse is a community-built, open, and audited platform offering modular smart contracts for major blockchains. It allows Web2 developers to build Web3 apps using JavaScript without needing to write smart contract code, by providing access to pre-built smart modules.

No, you do not need to learn a new programming language to develop on Hyperverse. Web2 developers can build Web3 applications using JavaScript, leveraging the platform's libraries and smart modules.

Smart modules in Hyperverse are single-purpose, on-chain smart contracts that developers can use to add specific functionalities to their applications. These modules are validated and audited by the community to ensure security and reliability.

In the Hyperverse model, transactions involve broadcasting a request to a network of nodes that validate and verify the transaction. Once verified, the transaction is added to a block on the blockchain, where it becomes immutable.

Yes, similar to using APIs like Stripe or Twilio in Web2, developers can use smart modules in Hyperverse to integrate payment systems or notifications into their Web3 apps with just a few lines of JavaScript code.

To set up a development environment for Hyperverse, developers need Visual Studio Code or another IDE, Node.js, and Yarn. They can start from scratch or use the Hyperverse Monorepo, which includes example dApps and packages.

Auditors and registrars in the Hyperverse ecosystem review the code of smart modules to ensure they are secure and function as intended. Auditors can stake tokens as an indication of their confidence in the module's security, acting as an insurance layer.

Blockchain fees, also known as 'gas', are determined dynamically based on the network activity at the time of the transaction. Transactions with higher gas fees are likely to be processed faster than those with lower fees.

Shain Dholakiya
Shain Dholakiya
51 min
01 Jul, 2022

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Today's Workshop focused on building Web3 apps with React using JavaScript, without the need for smart contract code. The Hyperverse was introduced as a community-built, open, and audited platform for modular smart contracts. The Workshop covered topics such as blockchain basics, digital signatures, wallets, fees, and token types. A demo of a Web3 application was showcased, along with the process of confirming transactions and starting a battle between tribes. The Workshop also discussed initializing Hyperverse and modules, connecting wallets, joining and leaving tribes, creating custom tribes, and implementing battle functionality and ERC-721 tokens.

1. Introduction to Web3 App Development

Short description:

Hi everyone. My name is Shane. Today we're gonna be talking about how you can build Web3 apps with React using JavaScript, so no smart contract code needed at all. Our mission is to onboard 10 million devs from Web2 to Web3. The Hyperverse accelerates and simplifies your blockchain development journey. The Hyperverse is a community-built, open, and audited, modular, smart contracts for all major blockchains.

Hi everyone. My name is Shane. I'm the developer advocate at Decentology. My Twitter handle, everything's down there. And today we're gonna be talking about how you can build Web3 apps with React using JavaScript, so no smart contract code needed at all. No need to pick up another programming language. So let's get into it.

So our company, obviously we love developers. That's why we are here, and we make products that make your lives easier. Our mission, as I was pointing to earlier, is that we want to onboard 10 million devs from Web2 to Web3. So you're in the perfect place if you are new to Web3. And then our product, the Hyperverse, which I'll be explaining even further and using, basically accelerates and simplifies your blockchain development journey. So you'll see exactly how throughout this workshop.

So the agenda for today, I'm going to be first sharing the Hyperverse overview. So just a how Hyperverse works. And then go into some blockchain and crypto basics. And then I'll show you a demo of two modules of Web3 applications using the Hyperverse. So let's get right into it. So what is the Hyperverse? The Hyperverse is a community-built, open, and audited, modular, smart contracts for all major blockchains. So that's a whole mouthful, but I'll break it down. Right now in the Web3 world, obviously if someone wants to build an application, there has to be a smart contract aspect, and then the front-end aspect. The smart contract aspect is a totally different ballgame than what we have in Web2 world. You have to think of so many other use cases and edge cases since that code is immutable once it's on chain. So that's a whole lot different than the Web2 world. And then as well as picking up a whole new programming language. So once those two aspects are combined, then you have a Web3 application. But what we are trying to do is make it super simple for Web2 devs to build apps without writing a single line of smart contract code and using just JavaScript. So you can tap into other smart contracts using just JavaScript and call these functions all with JavaScript and create your Web3 application that way. Instead of creating a smart contract from scratch. So here's an overview of the Hyperverse and how the architecture kind of works.

2. Building Smart Modules for Web 3.0

Short description:

Any smart contract developer can build smart modules, which are single-purpose smart contracts. Registrars validate these modules, and auditors verify the code. Web 2.0 developers can use JavaScript and libraries to tap into these modules, similar to using APIs. No smart contract code knowledge is needed.

So first, you know, any smart contract developer could go on and build these, what we call smart modules, which are essentially just single purpose, you know, on chain smart contracts, and then we have a community of registrars that will go in and validate these smart module packages. And these smart module packages consist of, you know, things like metadata, examples of, you know, how the functionality works and all that. And then we have a community of auditors that would actually go ahead and read the code of the smart contract that was built in the smart module and stake their tokens as an indication that, you know, this code is been verified and, you know, there's no scammy stuff or anything like that going on in here. So it acts like an insurance layer for the smart modules.

So now for Web 2.0 developers, all they have to do would be use JavaScript and use our libraries to tap into the smart modules and use them how they wish. And, you know, if this sounds familiar, this sort of concept sounds familiar to you, it's because it is, right. In Web 2.0 world, if you want to build a payment layer, you wouldn't build it from from scratch, right? You would just call Stripes API. If you want, you know, notifications, you would just call Twilio. And few lines of code, you have an app up and running with both those functionalities. So it's very similar of what we are building here. You're just connecting these, you know, Lego blocks of, I want this functionality from this smart module, this functionality from this smart module. And you can connect them literally just like NPM for smart contracts, and then use those functionalities wherever you want throughout your Web 3.0 application. So it really is that easy. So here is a diagram of just showcasing how, basically in the Web 3.0 world, you don't really need to have, you know, smart contract programming language knowledge. You could just write the client side applications using just, you know, HTML, CSS, and JavaScript and use, you know, React or whatever you want and tap into these smart contracts that were built by, you know, obviously the smart contract developers that were written in various different languages depending on, you know, which blockchain they're on. And you can just tap into these and then call those functionalities how you wish throughout your Web 3.0 application. So again, no smart contract code knowledge needed at all.

Watch more workshops on topic

Web3 Workshop - Building Your First Dapp
React Advanced 2021React Advanced 2021
145 min
Web3 Workshop - Building Your First Dapp
Top Content
Featured WorkshopFree
Nader Dabit
Nader Dabit
In this workshop, you'll learn how to build your first full stack dapp on the Ethereum blockchain, reading and writing data to the network, and connecting a front end application to the contract you've deployed. By the end of the workshop, you'll understand how to set up a full stack development environment, run a local node, and interact with any smart contract using React, HardHat, and Ethers.js.
Querying Blockchain Data with GraphQL
JSNation 2023JSNation 2023
64 min
Querying Blockchain Data with GraphQL
WorkshopFree
Simon Emanuel Schmid
Simon Emanuel Schmid
Curious about how data works in the world of blockchain? Join Simon in an engaging session about The Graph, the decentralized indexing protocol that makes it easy for blockchain developers to search and query blockchain data. 
Table of the contents:- Understanding blockchain data- Anatomy of a smart contract- Indexing blockchain data with The Graph- Accessing data on The Graph- Recommended subgraphs- Writing subgraphs overview
Web Accessibility in JavaScript Apps
React Summit 2022React Summit 2022
161 min
Web Accessibility in JavaScript Apps
Workshop
Sandrina Pereira
Sandrina Pereira
Often we see JavaScript damaging the accessibility of a website. In this workshop, you’ll learn how to avoid common mistakes and how to use JS in your favor to actually enhance the accessibility of your web apps!
In this workshop we’ll explore multiple real-world examples with accessibility no-nos, and you'll learn how to make them work for people using a mouse or a keyboard. You’ll also learn how screen readers are used, and I'll show you that there's no reason to be afraid of using one!
Join me and let me show you how accessibility doesn't limit your solutions or skills. On the contrary, it will make them more inclusive!
By the end, you will:- Understand WCAG principles and how they're organized- Know common cases where JavaScript is essential to accessibility- Create inclusive links, buttons and toggleble elements- Use live regions for errors and loading states- Integrate accessibility into your team workflow right away- Realize that creating accessible websites isn’t as hard as it sounds ;)
How to Convert Crypto Currencies With GRPC Microservices in Node.js
JSNation 2023JSNation 2023
117 min
How to Convert Crypto Currencies With GRPC Microservices in Node.js
Workshop
Alex Korzhikov
Andrew Reddikh
2 authors
The workshop overviews key architecture principles, design patterns, and technologies used to build microservices in the Node.js stack. It covers the theory of the GRPC framework and protocol buffers mechanism, as well as techniques and specifics of building isolated services using the monorepo approach with lerna and yarn workspaces, TypeScript. The workshop includes a live practical assignment to create a currency converter application that follows microservices paradigms. It fits the best developers who want to learn and practice GRPC microservices pattern with the Node.js platform.
Prerequistes:- Good understanding of JavaScript or TypeScript- Experience with Node.js and writing Backend applications- Preinstall Node.js, npm- Preinstall Protocol Buffer Compiler- We prefer to use VSCode for a better experience with JavaScript and TypeScript (other IDEs are also ok)
Finding, Hacking and fixing your NodeJS Vulnerabilities with Snyk
JSNation 2022JSNation 2022
99 min
Finding, Hacking and fixing your NodeJS Vulnerabilities with Snyk
WorkshopFree
Matthew Salmon
Matthew Salmon
npm and security, how much do you know about your dependencies?Hack-along, live hacking of a vulnerable Node app https://github.com/snyk-labs/nodejs-goof, Vulnerabilities from both Open source and written code. Encouraged to download the application and hack along with us.Fixing the issues and an introduction to Snyk with a demo.Open questions.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Levelling up Monorepos with npm Workspaces
DevOps.js Conf 2022DevOps.js Conf 2022
33 min
Levelling up Monorepos with npm Workspaces
Top Content
NPM workspaces help manage multiple nested packages within a single top-level package, improving since the release of NPM CLI 7.0. You can easily add dependencies to workspaces and handle duplications. Running scripts and orchestration in a monorepo is made easier with NPM workspaces. The npm pkg command is useful for setting and retrieving keys and values from package.json files. NPM workspaces offer benefits compared to Lerna and future plans include better workspace linking and adding missing features.
Web 3 Gaming: What it is and Why it Matters
JS GameDev Summit 2022JS GameDev Summit 2022
36 min
Web 3 Gaming: What it is and Why it Matters
Web3 gaming enables decentralized identity and finance, allowing game developers to bypass centralized platforms. It is driven by wallets, ERC20 tokens, and NFTs. Web3 games focus on collaborative world-building, ownership, and open-source collaboration. The challenge is achieving decentralization while addressing economic and technological limitations. Web3 aims to redefine the gaming industry by using economic tools and exploring new genres like RPG and RTS games.
Domain Driven Design with Vue Applications
Vue.js London 2023Vue.js London 2023
14 min
Domain Driven Design with Vue Applications
Top Content
Welcome to this talk on domain-driven design in Vue.js application. Today we are going to look into domain-driven design, its benefits and how it works with Vue.js domain-driven design versus the MVVM model. Vue.js thrives in domain-driven design, a design approach that models software to match a domain. DDD emphasizes understanding business logic and creating a domain that reflects the language and concepts. Integrating DDD in Vue.js offers benefits such as effective modeling of complex business domains, structured code reflecting domain logic, and easier onboarding and ownership.
E2E Tests for Web3 Applications
TestJS Summit 2022TestJS Summit 2022
21 min
E2E Tests for Web3 Applications
Top Content
In this Talk, Rafaela discusses Web3, its decentralized and token-based model, and the architecture based on smart contracts. Testing Web3 poses challenges due to the need for third-party providers like MetaMask. Approaches such as mocking the Web3 flow and using end-to-end testing tools like Taskafar are suggested. The trade-offs in Web3 testing include test speed and dependency on third-party apps. Balancing unit, integration, and end-to-end tasks is crucial for a robust testing strategy.
How to Share Code between React Web App and React Native Mobile App in Monorepo
React Summit 2022React Summit 2022
7 min
How to Share Code between React Web App and React Native Mobile App in Monorepo
This presentation focuses on sharing code between React web and React native mobile apps. The speaker demonstrates how to achieve feature parity using a Monorepo with NX. They highlight the importance of sharing non-UI code, such as business logic and state management, through shared libraries. This approach allows the apps to focus on UI code while keeping non-UI code separate. For more details, refer to the speaker's blog post.
A Frontend Developer’s Guide to Web3
React Summit 2022React Summit 2022
22 min
A Frontend Developer’s Guide to Web3
This talk covers an introduction to Web 3 and smart contracts, including deployment and bytecode compilation. It also discusses interacting with blockchain wallets, using RPC endpoints and block explorers, and accessing smart contract data. The talk emphasizes the use of ABIs and JavaScript libraries like ethers for interacting with smart contracts. It mentions the shift in mindset from HTTP requests to using ABI code and libraries for front-end development in Web 3. The talk concludes by mentioning Web3UI and tools like PolygonScan and Etherscan for building on the blockchain.