November 2019
Beginner
436 pages
8h 52m
English
You already know how to get information about your local Ethereum node, so now is a good time to render this information in the user interface. For the sake of simplicity, I recommend putting it into the Header area so that our users can always see what node they are working with.
Let's introduce the node and setNode React Hooks:
import React, { useState } from 'react';function App() { const [node, setNode] = useState('Unknown Node'); // ...}
Now, you can use the node hook to display the node's information or Unknown Node in case errors occur. You can also use setNode to update the node's information. This is what we are now going ...
Read now
Unlock full access