Class based component App is updated with functional based component using useState and useEffect
This truffle box is a starter kit and might be more playful with React Hooks, in places like form creation
( can have multiple states inside a component ) and updating UI states. The componentDidMount
has been updated to "init" and the useEffect hook covers its functionality.
Async and await was not working inside the useEffect so the init aka ComponentDidMount re-structured
with Promise .then.catch.
There is also a minor change in the getWeb3.js file ( next change proposal ) <<
removed the window.addEventListener('load'. await()=>{} ......
Class based component App is updated with functional based component using useState and useEffect This truffle box is a starter kit and might be more playful with React Hooks, in places like form creation ( can have multiple states inside a component ) and updating UI states. The componentDidMount has been updated to "init" and the useEffect hook covers its functionality. Async and await was not working inside the useEffect so the init aka ComponentDidMount re-structured with Promise .then.catch.