강의

멘토링

커뮤니티

Inflearn Community Q&A

No author

This post's author information has been deleted.

Life Coding - React

create implementation: change contents

max_content_id

Written on

·

242

0

를 state 밖으로 뺐는데 왜 빼는건지 잘 모르겠어요.

애초에 state에 있는것도 다 max_content_id처럼 변수로 선언하면 안되나요??

react

Answer 1

1

state는 바뀔때마다 화면이 렌더링됩니다

렌더링이 필요하지 않은 변수라서 밖으로 뺍니다

No author

This post's author information has been deleted.

Ask a question