Giter Club home page Giter Club logo

fe-react-hooks-first's Introduction

[FE] React Hooks

이번 세션에서는 자바스크립트 이벤트 핸들러와 React Hooks 중 useState, useEffect, useReft에 대해 다루었습니다.

따라서 이번 실습과 과제는 이를 활용해보는 문제들로, 실습 3문제로 이루어져 있습니다! 수업시간에 저랑 같이 진행할 예정입니다!


[실습 1번]

+1 버튼을 클릭하면 숫자가 1 증가하고, -1 버튼을 클릭하면 숫자가 1 감소하는 Counter를 만들어주세요!

src/components/Counter.jsx 에서 진행해주시면 됩니다!

01.mp4

[실습 2번]

useEffect()를 이용하여 다음의 결과를 출력하도록 해주세요!

  1. 렌더링이 완료되었습니다.
  2. 버튼 클릭 시, 콘솔에 Count 값이 변경되었습니다. 출력
  3. text 입력시 콘솔에 text 값이 변경되었습니다. 출력

    src/components/Counter2.jsx 에서 진행해주시면 됩니다!
2024-04-09.19-58-06.mp4

[실습 3번]

이름과 닉네임을 입력할 수 있는 입력창이 있습니다.
각 값을 입력했을 때 다음 영상과 같이 아래에 입력한 이름과 닉네임이 표시되도록 코드를 작성해주세요!

src/components/Name.jsx 에서 진행해주시면 됩니다!

2024-04-09.17-08-56.mp4

fe-react-hooks-first's People

Contributors

lexxsh avatar yerroong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.