How to access information in an Input field (which is a component)?
What is the best way to access information in a component in another component ? I want to submit an email address (Input field is a component ) when a button is clicked (Button is a component ) . How can the Button -component get access to the text in the input field ? Would it be to create an event on the Input field component that updates a variable in the parent (Page ) every time the text is changed ? And then use that variable as the input ? Or any better ways to do this ? Send the data back to use in your API

.jpeg/public)