I have a react component that renders the answers of a contact form and presents them in the page. eg:
const Quote = ({fields}) => {
return (
<>
<div>
Business Type: {fields.businesstype.value}
</div>
....
</>
)
}
I need to send the rendered data to the php backend in order to send them as an email.
The question: Can I use the same component to get the rendered data (in a variable) and send them to backend (with axios)
Thank you for your time.