Skip to content

Latest commit

 

History

History

lesson2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Lesson 2

This project was bootstrapped with Create React App.

npx create-react-app lesson2
cd lesson2

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

Homework

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
  );
}

Homework final result

Your app should look close to this

Screen.Recording.2022-09-16.at.13.35.28.mov

Useful link