/React-docs-analyze

리액트 공식문서 파헤치기 시리즈

Primary LanguageTypeScript

리액트 공식문서 파헤치기

Written By Sangheon Kim

남에게 설명을 못하면.. 아직 잘 모르는 것이라고 생각되어 공식문서를 읽고 정리하면서 설명하는 Repo입니다. 그리고 제 글 보시는 분들과 함께 여러가지 팁도 공유하고, 저도 들을 수 있으면 좋겠다는 생각이 들었습니다:) Happy Hacking 하세요:)

  • Stage1. React 사용자 정의 컴포넌트 종류별 정리

    • 리액트에서 적절한 사용자 정의 컴포넌트 생성을 위한 사용자 정의 컴포넌트의 종류별 차이를 알아보자. (React.Component, React.PureComponent, Function Component)
    • Let's look at the differences in the types of user-defined components for creating the appropriate user-defined components in the react. (React.Component, React.PureComponent, Function Component)
      > Go to Learn

  • Stage2. React.ElementConversion & Create(엘리먼트 변환) (React 엘리먼트를 변환 하거나 생성시에 쓰는 메서드를 알아보자)

    • Let's look at the methods used to convert or create React elements.
      > Go to Learn

  • Stage3. React.Fragment (React.Fragment 와 자바스크립트의 Fragment에 대해 알아보자)

    • Let's find out about React.Fragment and JavaScript' Fragment.
      > Go to Learn

  • Stage4. Reconciliation Reconciliation 을 보면서 어떻게 리액트는 변화에 대해서 감지하고 최신의 변경된 사항들을 보여줄 수 있는지에 대해 깊이 있게 알아봅시다. 키를 왜 할당하는가? 그리고 키값은 어떤 값을 넣어줘야하는가??

    • Let's look at Reconciliation and learn more about how react can detect changes and show the latest changes. Why assign keys? And what value should I put in the key value?
      > Go to Learn

  • Stage5. Virtual DOM과 Internals(가상 DOM은 그러면 무엇일까? 왜 리액트는 가상돔을 선택한 것일까?에 대한 이유에 대해서도 알아보자)

    • Virtual DOM and Internals (what are virtual DOMs then? Why did React choose Virtual Dome?Let's also find out why.)
      Go to Learn

  • Stage6. Ref와 DOM (Ref와 DOM을 이해해보자... ref는 언제 쓰는것이 좋으며, 어떠한 기능까지도 제공해주며, querySelector나 getElementBy~ 같은 DOM API를 쓰면 안되는지 등과 여러가지 기능을 제공해주는 ref에 대해서 알아봅시다.)

    • Ref & DOM (Let's understand Ref and DOM... Let's find out when to use the ref, what functions to provide, and whether to not use DOM APIs such as QuerySelector or getElementBy~)
      Go to Learn

  • Stage7. ref 전달하기 (함수 컴포넌트인 하위 컴포넌트에게 ref를 전달해보자) - (useImperativeHandle, forwardRef)

    • Ref forwarding (let's deliver the ref to the subcomponent that is the function component) - (useImproactiveHandle, forwardRef)
      Go to Learn

  • Stage8. Code Splitting (Bundleling(번들링)? Code Splitting(코드 분할)? Lazy load(지연 로드)? React.Suspense ?? 분명 프론트엔드 개발을 하시다보면 많이들 접해 보셨을 이야기라고 생각합니다. 과연 이것들은 이야기는 들었는데, 왜 쓰는지? 어떨때 사용하면 유용할지 한번 알아봐요:))

    • Bundling? Code Splitting? Lazy load? React.Suspense ? I'm sure many of you have heard this story when you develop the front-end. I've heard about these, why do you use them? Let's find out when it's useful:)
      Go to Learn

  • Stage9. Error Boundary (에러 경계를 통해서 컴포넌트 렌더링 중 발생하는 에러에 대해 캐치하고, fallback UI를 제공해주어 사용성도 높아지고, 전체 UI가 언마운트 되는 현상도 막아보자...)

    • Let's catch errors during component rendering through error boundaries, provide fallback UI to increase usability, and prevent the entire UI from being unmounted...
      Go to Learn

  • Stage10. React Hook (Hook은 어떤것일까? 왜 리액트가 Hook을 만들게 된 것일까? 생각해보자.)

    • (What is Hook like? Why did React make Hook? Let's think about it.)
      Go to Learn

중간 수정 사항

20201112 - 00:04 관련 예제 코드 스와이퍼모듈 활용할때 사용한 Element Conversion과 ref 코드 Stage2에 가장 하단에 올려놓았습니다:) 참고 하시면 좋을 듯하여 추가드립니다.