ReactElement render()
what -
when
when creating a component class by invoking React.createClass()
React.createClass()
render 메서드를 포함하는 specification object 제공해야만 함
render
should be pure
component state를 수정하지 않음 을 의미
render()가 호출될 때
render()
this.props 와 this.state를 조사
this.props
this.state
그리고 return a single child element
child element는 virtual representation of a native DOM component다.
such as <div/> or React.DOM.div()
<div/>
React.DOM.div()
Last updated 7 years ago
Was this helpful?