React Props updates but it does not reflect on the state
Hello, I am practicing React and I am stuck with this issue. The component property updates but it doesn't render the recent change. Even the state is not aware of the recent change. //Parent Component render() { const qqfReservationForm = { position: "relative", fontFamily: "Helvetica, Arial, sans-serif", boxShadow: "0px 0px 25px 0px #333", backgroundColor: "whitesmoke", width: 600, borderRadius: 3, overflow: "hidden", border: "2px solid blue", }; return ( <form onSubmit={(e) => this.handleSumit(e)} name="qqfReservationForm" id="qqfReservationForm" style={qqfReservationForm} > {this.getFormTitle()} <FormStep stepPosition={this.state.currentFormTab} /> {this.getNavigationButton()} </form> ); } //child component render() { //console.log("constructor state is => ", this.state); const qqfWrapper = { width: 3000, border: "1px solid red", display: "flex", transform: `translate3d(${this.props.stepPosition},0,0)`, }; console.log("form step is ", qqfWrapper); return <div style={qqfWrapper}>{this.getFormStep()}</div>; }