Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Ethereum

You're reading from   Mastering Ethereum Implement advanced blockchain applications using Ethereum-supported tools, services, and protocols

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher Packt
ISBN-13 9781789531374
Length 490 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Merunas Grincalaitis Merunas Grincalaitis
Author Profile Icon Merunas Grincalaitis
Merunas Grincalaitis
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Section 1: Blockchain - Ethereum Refresher FREE CHAPTER
2. Blockchain Architecture 3. Ethereum Ecosystems 4. Ethereum Assets 5. Section 2: Decentralized Application Development Workflow
6. Mastering Smart Contracts 7. Mastering dApps 8. Tools, Frameworks, Components, and Services 9. Deployment on Testnet 10. Various dApps Integrations 11. Decentralized Exchanges Workflow 12. Section 3: Ethereum Implementations
13. Machine Learning on the Ethereum Blockchain 14. Creating a Blockchain-based Social Media Platform 15. Creating a Blockchain-Based E-Commerce Marketplace 16. Other Books You May Enjoy

Creating user interfaces

Because we have a clean react.js project properly set up, we can start right away with creating our application's user interface. We'll use sample data to check the design before moving on and integrating the real smart contract code.

Open up the src/index.js file to start coding your design:

import React from 'react'
import ReactDOM from 'react-dom'

class Main extends React.Component {
constructor() {
super()
}

render() {
return (
<div>
<h1>Welcome to Decentralized Social Music!</h1>
<p>Setup your account, start adding musical recommendations for your friends and follow people that may interest you</p>
<div className="buttons-container">
<button>Setup Account</button>
...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime