Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

226
Views
¿Cómo puedo acceder a los datos en otra página?

Al enviar el formulario, quiero pasar el estado de UserLocation y los datos del formulario a otra página donde pueda acceder a ellos.

filas es una matriz de filas de hojas de Excel obtenidas de una API

estoy recibiendo este error

DataCloneError: no se pudo ejecutar 'pushState' en 'Historial': el objeto de almacenamiento no se pudo clonar.

estoy recibiendo este error

El código del archivo es:

 class UserLocation extends React.Component { constructor(props) { super(props); this.state = {value: '',data:[]}; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } handleChange(event) { this.setState({value: event.target.value}); } handleSubmit(event) { event.preventDefault(); this.setState({value: event.target.value}); } componentDidMount(){ getRow(){ //rows fetched from an API this.setState({data:rows}); } getRow(); } render() { return ( <div className="District"> <div className="DistrictBar"> <form onSubmit={this.handleSubmit}> <label> Enter District: <input type="text" value={this.state.value} onChange={this.handleChange} /> </label> <Link to={{pathname:"/district",state:{state:window.localStorage}}}><button><input type="submit" value="Submit" /></button></Link> </form> </div> </div> ); } } export default UserLocation;
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!