javascript – Property cannot be accessed from parent class in react


So i passed some property from parent class(Counters) to child class (counter)
The way i am passing properties

and i think it has been correctly passed down
i printed “this.props” on console

but the thing when i am trying to access value of counter via this.props.counter.value it’s throwing error and also when i am trying to console “this.props.counter” it is showing “undefined