Git Product home page Git Product logo

react-practice's Introduction

๐Ÿ‘‹๐Ÿป

Solved.ac ํ”„๋กœํ•„ Top Langs

react-practice's People

Stargazers

 avatar

Watchers

 avatar

react-practice's Issues

Practice: directly implements react hook useState & useEffect

๐Ÿ‘ฉ๐Ÿผโ€๐Ÿซ ๋ฆฌ์•กํŠธ์˜ ์–ด๋–ค ๋ถ€๋ถ„์„ ํ•™์Šตํ• ๊นŒ์š”?

  • directly implements useState
  • directly implements useEffect

๐Ÿ“– ์ฐธ๊ณ  ์‚ฌํ•ญ

practice : ๋ฆฌ์•กํŠธ๋กœ ํ‹ฑํƒํ†  ๊ฒŒ์ž„ ๋งŒ๋“ค๊ธฐ

๐Ÿ‘ฉ๐Ÿผโ€๐Ÿซ ๋ฆฌ์•กํŠธ์˜ ์–ด๋–ค ๋ถ€๋ถ„์„ ํ•™์Šตํ• ๊นŒ์š”?

  • ๋ฆฌ์•กํŠธ๋กœ ํ‹ฑํƒํ†  ๊ฒŒ์ž„์„ ๋งŒ๋“ค์–ด๋ณด๋ฉฐ, ๋ฆฌ์•กํŠธ์˜ ๊ฐœ๋…์„ ์ข€ ๋” ํ•™์Šตํ•ด์š”

๐Ÿ“– ์ฐธ๊ณ  ์‚ฌํ•ญ

practice: learn react hook useRef

๐Ÿ‘ฉ๐Ÿผโ€๐Ÿซ ๋ฆฌ์•กํŠธ์˜ ์–ด๋–ค ๋ถ€๋ถ„์„ ํ•™์Šตํ• ๊นŒ์š”?

  • useRef ํ›…์— ๋Œ€ํ•ด์„œ ํ•™์Šตํ•ฉ๋‹ˆ๋‹ค.
  • ๋™์ž‘ ์›๋ฆฌ๋ฅผ ๊ฐ„๋‹จํ•˜๊ฒŒ ์‚ดํŽด๋ณด๊ณ , ์‚ฌ์šฉํ•˜๊ธฐ ์ข‹์€ ์ƒํ™ฉ๊ณผ ์‚ฌ์šฉ๋ฒ•์— ๋Œ€ํ•ด์„œ๋„ ์•Œ์•„๋ด…๋‹ˆ๋‹ค.

๐Ÿ“– ์ฐธ๊ณ  ์‚ฌํ•ญ

practice: ๋ฆฌ์•กํŠธ ํ•ต์‹ฌ๊ฐœ๋… ํ•™์Šต

๐Ÿ‘ฉ๐Ÿผโ€๐Ÿซ ๋ฆฌ์•กํŠธ์˜ ์–ด๋–ค ๋ถ€๋ถ„์„ ํ•™์Šตํ• ๊นŒ์š”?

  • ๋ฆฌ์•กํŠธ๋กœ ๊ฐ„๋‹จํ•œ ์›น ์‚ฌ์ดํŠธ๋ฅผ ํ•˜๋‚˜ ๋งŒ๋“ค๊ณ  ๋ฆฌ์•กํŠธ์˜ ํ•ต์‹ฌ ๊ฐœ๋…์ธ
  • JSX
  • props
  • state
  • component

๋“ฑ์„ ํ•™์Šตํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ“– ์ฐธ๊ณ  ์‚ฌํ•ญ

practice: useMemo ํ•™์Šต

๐Ÿ‘ฉ๐Ÿผโ€๐Ÿซ ๋ฆฌ์•กํŠธ์˜ ์–ด๋–ค ๋ถ€๋ถ„์„ ํ•™์Šตํ• ๊นŒ์š”?

  • useMemo๋ฅผ ํ•™์Šตํ•ฉ๋‹ˆ๋‹ค.
  • ์–ด๋–ค ์ƒํ™ฉ์—์„œ ์‚ฌ์šฉํ•ด์•ผ ์ตœ์ ํ™”์— ๋„์›€ ๋˜๋Š”์ง€๋ฅผ ์•Œ์•„๋ด…๋‹ˆ๋‹ค.

๐Ÿ“– ์ฐธ๊ณ  ์‚ฌํ•ญ

practice : useStore, useStoreSelector + Context API & variable global state management library

๐Ÿ‘ฉ๐Ÿผโ€๐Ÿซ ๋ฆฌ์•กํŠธ์˜ ์–ด๋–ค ๋ถ€๋ถ„์„ ํ•™์Šตํ• ๊นŒ์š”?

  • #14 ํ•ด๋‹น ์ด์Šˆ์—์„œ ํ•™์Šตํ–ˆ๋˜ useStore, useStoreSelector์˜ ํ•œ๊ณ„๋ฅผ ์•Œ์•„๋ณด๊ณ  Context API๋กœ ๊ฐœ์„ ํ•ด ๋ด…๋‹ˆ๋‹ค.
  • Recoil, Jotai, Zustand ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ๋™์ž‘ ์›๋ฆฌ๋ฅผ ๊ฐ„๋‹จํ•˜๊ฒŒ ์•Œ์•„๋ด…๋‹ˆ๋‹ค.

๐Ÿ“– ์ฐธ๊ณ  ์‚ฌํ•ญ

  • ๋ฆฌ์•กํŠธ ๋‹ต๋‹ค์ด๋ธŒ 5.2.3 โ‚ฉ 5.2.4

practice: directly implements react global state management

๐Ÿ‘ฉ๐Ÿผโ€๐Ÿซ ๋ฆฌ์•กํŠธ์˜ ์–ด๋–ค ๋ถ€๋ถ„์„ ํ•™์Šตํ• ๊นŒ์š”?

์ง€์—ญ ์ƒํƒœ์˜ ํ•œ๊ณ„๋ฅผ ๋ฒ—์–ด๋‚˜๋ณด์ž : useState์˜ ์ƒํƒœ๋ฅผ ๋ฐ”๊นฅ์œผ๋กœ ๋ถ„๋ฆฌํ•˜๊ธฐ(๋ฆฌ์•กํŠธ ๋”ฅ๋‹ค์ด๋ธŒ : 5.2.2)

ํ•ด๋‹น ๋ถ€๋ถ„์˜ ์˜ˆ์‹œ๋ฅผ ์ง์ ‘ ์ž‘์„ฑํ•˜๊ณ , ๋กœ์ปฌ ํ™˜๊ฒฝ์—์„œ ์‹คํ–‰ํ•ด ๋ด…๋‹ˆ๋‹ค

๐Ÿ“– ์ฐธ๊ณ  ์‚ฌํ•ญ

Practice : ๋ฆฌ์•กํŠธ ํ•ฉ์„ฑ ์ปดํฌ๋„ŒํŠธ ํ•™์Šต

๐Ÿ‘ฉ๐Ÿผโ€๐Ÿซ ๋ฆฌ์•กํŠธ์˜ ์–ด๋–ค ๋ถ€๋ถ„์„ ํ•™์Šตํ• ๊นŒ์š”?

  • ๋ฆฌ์•กํŠธ์—์„œ ํ•ฉ์„ฑ ์ปดํฌ๋„ŒํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ํ•™์Šตํ•ฉ๋‹ˆ๋‹ค.
  • ํ•ฉ์„ฑ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์™œ ๋“ฑ์žฅํ–ˆ๋Š”์ง€ ,์–ด๋–ค ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•ด์ฃผ๋Š”์ง€์— ๋Œ€ํ•ด์„œ ํ•™์Šตํ•ฉ๋‹ˆ๋‹ค

๐Ÿ“– ์ฐธ๊ณ  ์‚ฌํ•ญ

practice: learn react hook useLayoutEffect

๐Ÿ‘ฉ๐Ÿผโ€๐Ÿซ ๋ฆฌ์•กํŠธ์˜ ์–ด๋–ค ๋ถ€๋ถ„์„ ํ•™์Šตํ• ๊นŒ์š”?

  • useLayoutEffect์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ด…๋‹ˆ๋‹ค.
  • useEffect์™€ ๋น„๊ตํ•˜๊ณ , useLayoutEffect ํ›…์„ ์–ด๋–ค ์ƒํ™ฉ์—์„œ ์‚ฌ์šฉํ•˜๋ฉด ์ข‹์€์ง€์— ๋Œ€ํ•ด์„œ๋„ ์•Œ์•„๋ด…๋‹ˆ๋‹ค.

๐Ÿ“– ์ฐธ๊ณ  ์‚ฌํ•ญ

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.