Is it possible to use if...else... statement in React render function? - stackoverflowstackoverflow를 뒤적거리며 실무 코드를 동작하게 만드는 것은 생각보다 할 만 하지만, 아직 es6 및 r
How to check if an app is installed from a web-page on an iPhone? - stackoverflowHow to check if an app is installed from a web-page on an iPhone?Wind
동적인 데이터를 다룰 땐 state를 사용하게 된다. 위의 코드에서 Component의 state를 정의할 때는 class fields 문법을 사용해서 정의했다. class fields 문법을 사용하지 않는 경우에는 다음과 같이 state를 정의할 수 있다:위에서 사용