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

128
Views
src\components\Home.js Línea 6:10: 'Contenedor' no está definido react/jsx-no-undef
import React from 'react' import styled from "styled-components"; function Home() { return ( <Container> home </Container> ) } export default Home

viene el error

 src\components\Home.js Line 6:10: 'Container' is not defined react/jsx-no-undef
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Primero debe definir Container, por ejemplo:

 import React from 'react' import styled from "styled-components"; const Container = styled.Text` font-size: 42; `; function Home() { return ( <Container> home </Container> ) } export default Home

Si tiene un Container que ya creó y exportó por defecto, impórtelo de la siguiente manera

 import React from 'react' import styled from "styled-components"; import Container from "file-path"; function Home() { return ( <Container> home </Container> ) } export default Home

Si exporta Container como constante, entonces necesita importar como

 import React from 'react' import styled from "styled-components"; import { Container } from "file-path"; function Home() { return ( <Container> home </Container> ) } export default Home

Para obtener más información, consulte este

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!