Created
August 22, 2020 00:38
-
-
Save MeliAlbu/bf56f97be5f2053b2b84fe84d4f1f1b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
class Carousel extends React.Component { | |
render() { | |
return ( | |
<> | |
<h1>{this.props.product}</h1> | |
</> | |
); | |
} | |
} | |
export default Carousel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import logo from "./logo.svg"; | |
import "./App.css"; | |
import ClassComponent from "./components/ClassComponent"; | |
import Carousel from "./components/Carousel"; | |
import Subtitle from "./components/Subtitle"; | |
function App() { | |
return ( | |
<> | |
<ClassComponent title="Hola Juani" /> | |
<ClassComponent title="Hola CourseIt" /> | |
<Subtitle subtitle="Curso de Front-End Avanzado" /> | |
<ClassComponent title="Hola Juani" /> | |
<ClassComponent title="Hola CourseIt" /> | |
<div className="Carousel"> | |
<Carousel product="Producto 1" /> | |
<Carousel product="Producto 2" /> | |
<Carousel product="Producto 3" /> | |
</div> | |
</> | |
); | |
} | |
export default App; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
class SubtitleComponent extends React.Component { | |
render() { | |
return <h2>{this.props.subtitle}</h2>; | |
} | |
} | |
export default SubtitleComponent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
class ClassComponent extends React.Component { | |
handleChange() { | |
console.log(""); | |
} | |
render() { | |
return ( | |
<> | |
<h1>{this.props.title}</h1> | |
</> | |
); | |
} | |
} | |
export default ClassComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment