animation
style
animate 속성 사용
그래프 그려지는 효과
<VictoryChart animate={{ duration: 1000 }} containerComponent={<VictoryContainer />} width={500} height={300}>
그래프 모양 부드러운 선으로 변경
<VictoryLine
...
interpolation='basis'
...
/>
stroke 색상 ,굵기 변경
<VictoryLine
...
style={{ data: { strokeWidth: 4, stroke: '#0C72F9' } }}
...
/>
// eslint-disable-next-line react/prop-types
이렇게 작성시 바로 아랫줄이 eslint 규칙에 관여받지 않게 된다
++ 사용 못함
var cnt = 0;
// cnt ++;
cnt += 1; // 이렇게 변경
사용자에게 개체의 인식 가능한 이름은 제공합니다.
150줄보다 길면 컴포넌트를 더 쪼개거나 코드를 줄여야할 가능성 농후!