diff --git a/.replit b/.replit new file mode 100644 index 0000000..d409ef8 --- /dev/null +++ b/.replit @@ -0,0 +1,2 @@ +language = "nodejs" +run = "npm start" \ No newline at end of file diff --git a/public/index.html b/public/index.html index aa069f2..4f31281 100644 --- a/public/index.html +++ b/public/index.html @@ -1,21 +1,21 @@ - - - - - - - - - - - React App - - - -
- - - + + + + + + + + \ No newline at end of file diff --git a/src/App.js b/src/App.js index 7c96152..30808de 100644 --- a/src/App.js +++ b/src/App.js @@ -1,9 +1,14 @@ -import React from 'react'; +import React from "react"; +import MyInfo from "./MyInfo"; + +const myName = "Areeg Fahad Rasheed"; +const description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."; +const favoritePlaces = ["Brazil", "Italy", "Canada", "New Zealand"] function App() { return (
-

Hello World!!

+
); } diff --git a/src/MyInfo.jsx b/src/MyInfo.jsx new file mode 100644 index 0000000..1116f15 --- /dev/null +++ b/src/MyInfo.jsx @@ -0,0 +1,18 @@ +import React from 'react'; + +const MyInfo = (props) => { + + const favoritePlace = props.favoritePlaces.map((place) => +
  • {place}
  • + ); + return ( +
    +

    {props.myName}

    +
    {props.description}
    +
    {favoritePlace}
    + +
    + ); +} + +export default MyInfo;