Can you please tell me, If I want to send data from child component to parent component and use it's value. How can I do it.
For Ex- In my child component there is a checkbox. Whose checked or unchecked value needs to send on the parent component, which I further utilize in the condition
Can it be possible. If yes, can you please send some link or snippet
Snippet looks like this
in parent class
onHandleClick(value) {.....some code}
<ChildComponent onHandleClick={onHandleSaveClick} />
In child class, it looks like
onCheckBoxHandle() {
.....some code
}
<input type="checkbox" onClick={this.onCheckBoxHandle} label="Some text" />
but neither parent function called nor the child function called
Thanks for your help!