import React from 'react' import styled from "styled-components"; function Home() { return ( <Container> home </Container> ) } export default Homeviene el error
src\components\Home.js Line 6:10: 'Container' is not defined react/jsx-no-undefPrimero 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 HomeSi 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