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

185
Views
No se puede importar el botón en reaccionar

Necesito ayuda para importar el button en react , soy totalmente nuevo en reaccionar

Creé una table donde muestro los data a través de JSON y ahora quiero agregar un button debajo de la tabla, cuando el usuario haga clic en él, se redirigirá a una nueva página

He imported el botón en mi archivo js

 import { Button } from 'react-native';

He usado Button en el render HTML como

 <Button variant="primary">Primary</Button>

Fragmento de código

 import React from 'react'; import { Table } from 'react-bootstrap'; import { Button } from 'react-native'; import '../scss/components/table'; import data from '../../public/userData'; export default function ReservedListView() { console.log('data :' + JSON.stringify(data)); let header = Object.keys(data[0]); console.log('header :' + header); return ( <div> <table id="students" class="table"> <tbody> <tr> <th>Name</th> <th>Date</th> <th>Day</th> <th>SimeSlot</th> </tr> {data.map((el, index) => ( <tr> <td>{el.name}</td> <td>{el.date}</td> <td>{el.day}</td> <td>{el.timeSlot}</td> </tr> ))} </tbody> </table> <Button variant="primary">Primary</Button> </div> ); }

Recibo este error cuando importo el botón ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

¿Está desarrollando en React pero quiere importar un botón desde react-native?

¿No puedes simplemente usar el botón normal en React?

https://reactjs.org/docs/handling-events.html

about 4 years ago · Juan Pablo Isaza Report
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!