Coder Social home page Coder Social logo

react-optimization-practice's Introduction

React Optimization practice repo

React + Vite + PokeAPI

포켓몬 API를 이용하여 리액트 최적화를 연습하는 레포입니다. 기본적으로 필요한 부분에 Memo를 사용하고, useTransition을 이용한 Concurrency 동시성으로 실행합니다.

Routes

Home

  1. README.md 파일을 동적으로 불러와서 사용할 수 있을까?
    • Vite에서 express사용하는 방법?
      • 마크다운 파일을 불러오기 위해선 Server Side에서 readFile로 접근해야한다. 따라서 백엔드 프레임 워크를 사용 할 필요성이 있다.
    • React-markdown 라이브러리로 렌더링
    • React-markdown 스타일 적용

Throttle, Debounce

  • 데이터 페칭
  • input 핸들링
    • Concurrency
  • Hook을 만들어 사용.
  • useRef를 사용하여 Throttle 구현.
  • Hook src ⬅️

Virtualized List

  1. useRef를 useEffect 내부에서 사용하기 위해선, useEffect 내부에 참조를 선언해야만 한다.
  • useEffect(() => {
      const instance = containerRef.current;
      ...
    
  1. relative 값을 주의하여야 한다.

react-optimization-practice's People

Contributors

lurgi avatar

Watchers

 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.