Notice
Recent Posts
Recent Comments
Link
목록2022/07/25 (1)
Silver Library (Archived)
뭘 놓쳤을까? - react props
지금 까지 알고 있었던 react props 는 오직, document 에 예시로 올라온 그 props 만 알고 있었습니다. 아래의 이 코드들 말이죠. function Welcome(props) { return Hello, {props.name}; } class Welcome extends React.Component { render() { return Hello, {this.props.name}; } } 그리고 컴포넌트 렌더링은 이런 식으로 예시가 나와있습니다. function Welcome(props) { return Hello, {props.name}; } const element = ;ReactDOM.render( element, document.getElementById('root') ); 그런..
Face the fear, build the future/Revision Sector
2022. 7. 25. 11:48