Giter Site home page Giter Site logo

repository_react_cat's Introduction

👨‍💻 Introduction

  • 박근우
  • Javascript / React / Next.js

⚡ Work Experience

  • PolarisOffice Web FrontDeveloper (2024.06 ~ )
  • RootKey Web FrontDeveloper (2024.02 ~ 2024.06 프리랜서)
  • HanryuBank Web FrontDeveloper (2023.04 ~ 2023.12)

🦴 Others

Solved.ac Profile

repository_react_cat's People

Contributors

geunu97 avatar

Watchers

 avatar  avatar

repository_react_cat's Issues

(useRef와 useState) 불필요한 리렌더링

🎯 문제

useRef는 기본적으로 요소에 접근하기 위해 사용되기도 하지만, 렌더링 부분과 상관없는 값을 다룰 때 사용할 수 있습니다.
useState의 상태는 변화할 때마다 리렌더링이 이루어지지만, useRef의 값은 변화할 때마다 리렌더링이 이루어지지 않습니다.
하지만 현재 모든 값을 useState로 관리하고 있어서 렌더링 부분과 상관없는 부분도 값이 바뀔 때마다 리렌더링이 이루어집니다.
따라서 렌더링 부분과 상관없는 값을 관리할 때는 useState가 아닌 useRef로 바꾸려고 합니다.

💭 기타

렌더링 부분과 상관없는 값을 관리할 때는 useState가 아닌 useRef로 바꿔야 될 것 같습니다.

검색어 저장 오류

문제

검색어 저장 5개까지 되도록 했는데, 6개까지 나오고, 7개부터는 오류가 발생합니다.

요약

  • 검색어 저장 5개로 문제 해결

ESLint 설정

🎯 문제

ESLint 설정을 위해 .eslintrc.json 파일을 만들고 규칙을 설정하였습니다.

💭 기타

package.json 파일 안에도 eslint 설정 부분이 있지만, 유지보수를 위해 따로 설정 파일을 만들었습니다.

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.