<repo_name>asd3638/movie_app_2021<file_sep>/README.md
### 영상

https://user-images.githubusercontent.com/59568523/124364901-72ce1d80-dc7f-11eb-9936-dd82e1a0c0f0.mp4
<file_sep>/src/components/State.js
import React from 'react'

class State extends React.Component {
    constructor(props) {
        super(props);
        this.handlePlus = this.handlePlus.bind(this);
        this.handleMinus = this.handleMinus.bind(this);
    }
    state= {
        count: 0
    }
    handlePlus() {
        this.setState({
            count: this.state.count + 1
        })
    }
    handleMinus() {
        this.setState({
            count: this.state.count - 1
        })
    }
    render() {
        const {count} = this.state;
        return (
            <div>
                <h1>This is state component</h1>
                <p>{count}</p>
                <button onClick={this.handlePlus}>+</button>
                <button onClick={this.handleMinus}>-</button>
            </div>
        )
    }
}

export default State;