render()

The render() method for App.js renders the Nav, Description, and Container components. It also passes all of the state and methods to the Container component for use by the child components:

render() {
return (
<div>
<Nav appName={this.appName} />
<div> </div>
<Description />
<Container
shoes={this.state.shoes}
newPayment={this.newPayment}
closePayment={this.closePayment}
PaymentDetail={this.state.PaymentDetail}
mAddress={this.state.mAddress}
amount={this.state.amount}
diff={this.state.diff}
paymentf={this.state.paymentf}
Conv={this.state.Conv}
MMaskTransfer={this.MMaskTransfer}
PaymentWait={this.PaymentWait}
startTimer={this.startTimer}
tick={this.tick}
defaultGasPrice={this.state.defaultGasPrice}
defaultGasLimit={this.state.defaultGasLimit}
minutes={this.state.minutes}
seconds={this.state.seconds}/>
</div>
)
}

When the Container component is rendered, it will accept all props and forward them to the child components as and when they are rendered.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.140.188.16