import React, { Component } from "react"; import { withRouter, } from "react-router-dom"; import EmailPage from './datosContacto/email.page' import PhonePage from './datosContacto/telefono.page' import WhatsappPage from './datosContacto/whatsapp.page' class DatosContactoPage extends Component { constructor(props) { super(props); this.state = { } } componentDidMount() { } render() { return (
{ /* Section form phone */ } this.initsetState(param) } /> { /* Section form whatsapp */ } this.initsetState(param) } /> { /* Section form email */ } this.initsetState(param) } />
); } initsetState(param) { this.props.initsetState(param) return true } }; export default withRouter(DatosContactoPage)