• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

191
Views
Los componentes de la interfaz de usuario del material no funcionan en el proyecto React JS

este es mi código app.js:

 import React from "react"; import './App.css'; import {Button} from "@mui/material"; function App() { return ( <div className="App"> <h1>COVID-19 TRACKER</h1> <Button variant="outlined">Text</Button> </div> ); } export default App;

debería mostrar el botón deseado pero en su lugar hay una pantalla en blanco ingrese la descripción de la imagen aquí

Y también hay un error en el registro de la consola. ingrese la descripción de la imagen aquí

Amablemente ayúdame a superar este error.

about 3 years ago · Juan Pablo Isaza
2 answers
Answer question

0

¿Tal vez importar el botón como en los ejemplos podría ayudar? Intente import Button from '@mui/material/Button';

about 3 years ago · Juan Pablo Isaza Report

0

import React from "react"; import './App.css'; import {Button} from "@mui/material"; export default class App extends React.Component { return ( <div className="App"> <h1>COVID-19 TRACKER</h1> <Button variant="outlined">Text</Button> </div> ); }

Espero que pueda ayudar.

about 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error