Notice
Recent Posts
Recent Comments
Link
목록2023/01/24 (1)
Silver Library (Archived)
From class to functional component?
Let's see how it would look like with class and functional component each. // class based component class AnimeComponent extends React.Component { constructor(props) { super(props)' this.state = { count: 0 }; this.handleClick = this.handleClick.bind(this); } handleClick() { this.setState(state => ({ count: state.count + 1 })); } render() { return ( Clicked {this.state.count} times. ); } } // fun..
F2. Problem & Solving/Data Structure
2023. 1. 24. 10:37