This project was bootstrapped with Create React App.
npx create-react-app lesson2
cd lesson2
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
Create a react app with following components: <App />
, <Section />
, <SectionFooter />
, <LikeButton />
:
Here is the beginning of your <App />
component:
function App() {
const section1Id = "s1";
const section2Id = "s2";
const section1Footer = "I stay at the end of section 1";
const section2Footer = "Here is section 2 end";
const textForLikeButton = "You liked. This text comes from <App /> component!"
return (
// Your HTML and React Components comes here
);
}
Your app should look close to this