Writing the App.js file

Let's look at how the App.js file is written:

  1. First, let's look at the following dependencies, which have to be imported:
import React, { Component } from 'react';import StellarSdk from 'stellar-sdk';import Nav from './Components/Nav';import Description from './Components/Description';import Container from './Components/Container';import USD from './Components/USD';var concat = require('concat-stream');const requestObj = require('request');const DBServer = 'localhost:3600';

From the preceding code, we can make the following observations:

  • We import the React object and the StellarSdk into our app.
  • The StellarAsk is used to create the USD asset interface for our app. Nav, Description, and Container are the navigation ...

Get Blockchain Development for Finance Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.