From cd135ac557c2ae6a7cf1422604271e2b8e373ff2 Mon Sep 17 00:00:00 2001 From: Troy McConaghy Date: Thu, 6 Dec 2018 10:46:27 +0100 Subject: [PATCH] Copy-edited react-publish-data-set.md --- content/tutorials/react-publish-data-set.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/tutorials/react-publish-data-set.md b/content/tutorials/react-publish-data-set.md index c24e1276..7b86eb9c 100644 --- a/content/tutorials/react-publish-data-set.md +++ b/content/tutorials/react-publish-data-set.md @@ -1,6 +1,6 @@ --- title: Publish a Data Set -description: Tutorial to add data set publishing capabilities to a basic React app. +description: Tutorial to add dataset publishing capabilities to a basic React app. --- ## Requirements @@ -10,7 +10,7 @@ This is a continuation of the [React App Setup](/tutorials/react-setup) tutorial ## Adding Publishing 1. Open `src/App.js` in your marketplace app from the [React App Setup](/tutorials/react-setup) tutorial. -2. First let's add the asset that we want to publish. To do that we need to add the following code after `window.ethereum.enable()` line. +2. First let's add the asset that we want to publish. To do that, we need to add the following code after `window.ethereum.enable()` line. ```javascript const asset = { @@ -50,7 +50,7 @@ This is a continuation of the [React App Setup](/tutorials/react-setup) tutorial } ``` -3. Now that we have asset to submit we need function to handle it. Just before `render() {` let's add: +3. Now that we have an asset to submit, we need function to handle it. Just before `render() {` let's add: ```javascript async submitAsset(){ @@ -60,7 +60,7 @@ This is a continuation of the [React App Setup](/tutorials/react-setup) tutorial } ``` -4. Last thing we need is button to start our registration inside render function just after `

Marketplace app

` +4. The last thing we need is a button to start our registration inside the render function just after `

Marketplace app

`: ```jsx @@ -68,9 +68,9 @@ This is a continuation of the [React App Setup](/tutorials/react-setup) tutorial ## Finished -That's it, if you have no errors in your `console.log` and you receive alert after you click `Register asset` you have successfully registered an asset. +That's it. If you have no errors in your `console.log` and you receive an alert after you click `Register asset` then you have successfully registered an asset. -Here is full source of `src/App.js` that you should have if you followed this tutorial: +Here is the full source of `src/App.js` that you should have if you followed this tutorial: ```javascript import React, { Component } from 'react'