프로젝트
GitHub에서 보기 
kristiandupont/react-geiger
소개
React 성능을 소리로 표현합니다.
웹 및 앱측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalReact Geiger

React Geiger is a tool for "audiolizing" React performance issues. You can have it running in the background and makes little clicks which will point your attention to excessive (slow) component rerenders.
Play with it in this playground
Installation
npm i react-geiger
Usage
You wrap whatever you want to track in the <Geiger> component, and re-renders inside will cause a click if they take longer than the threshold set (default: 50ms).
The most basic setup is wrapping your entire app:
<Geiger>
<App />
</Geiger>
You can also use it on a sub-tree wherever.
The options are:
profilerId?: string;
renderTimeThreshold?: number;
phaseOption?: PhaseOption;
customSoundFile?: string
enabled?: boolean;
profilerIdis an id that will be passed on to theReact.Profilercomponent. You probably don't need to change this.renderTimeThresholdis the time in milliseconds that will trigger a click. Default is 50ms. Set to 0 to make any re-render clickphaseOptionis the phase of the render you want to track, either'mount','update'or'both'(which is the default)customSoundFilepath to a custom sound file, if you want to use something else than the default click soundenableddefaults to true, but you can use this to disable it. Note that it relies onReact.Profilerunder the hood, which is disabled in production builds per default.

관련 프로젝트 살펴보기
불러오는 중…