·rerender-lazy-state
*

rerender-lazy-state

theorcdev/8bitcn-ui

useState 함수 형식으로 지연 상태 초기화를 사용합니다. 검색 인덱스 구축, JSON 구문 분석 또는 복잡한 계산과 같이 비용이 많이 드는 초기 값을 계산할 때 적용합니다.

13설치·0트렌드·@theorcdev

설치

$npx skills add https://github.com/theorcdev/8bitcn-ui --skill rerender-lazy-state

SKILL.md

Pass a function to useState for expensive initial values. Without the function form, the initializer runs on every render even though the value is only used once.

Use lazy initialization when computing initial values from localStorage/sessionStorage, building data structures (indexes, maps), reading from the DOM, or performing heavy transformations.

For simple primitives (useState(0)), direct references (useState(props.value)), or cheap literals (useState({})), the function form is unnecessary.

useState 함수 형식으로 지연 상태 초기화를 사용합니다. 검색 인덱스 구축, JSON 구문 분석 또는 복잡한 계산과 같이 비용이 많이 드는 초기 값을 계산할 때 적용합니다. 출처: theorcdev/8bitcn-ui.

원본 보기

인용 가능한 정보

AI/검색 인용용 안정적인 필드와 명령어.

설치 명령어
npx skills add https://github.com/theorcdev/8bitcn-ui --skill rerender-lazy-state
카테고리
*크리에이티브
인증됨
최초 등록
2026-02-01
업데이트
2026-02-18

빠른 답변

rerender-lazy-state이란?

useState 함수 형식으로 지연 상태 초기화를 사용합니다. 검색 인덱스 구축, JSON 구문 분석 또는 복잡한 계산과 같이 비용이 많이 드는 초기 값을 계산할 때 적용합니다. 출처: theorcdev/8bitcn-ui.

rerender-lazy-state 설치 방법은?

터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/theorcdev/8bitcn-ui --skill rerender-lazy-state 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code나 Cursor에서 사용할 수 있습니다

소스 저장소는 어디인가요?

https://github.com/theorcdev/8bitcn-ui