{"size": 651, "ext": "js", "max_stars_repo_path": "src/components/From.js", "max_stars_repo_name": "nokelong/simple-redux", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/From.js", "max_issues_repo_name": "nokelong/simple-redux", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/From.js", "max_forks_repo_name": "nokelong/simple-redux", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.5909090909, "max_line_length": 105, "alphanum_fraction": 0.574500768}
import React from 'react'
import PropTypes from 'prop-types'

let Form = ({ value, onAddClick, onDelClick }) => {
	let input = "";
	return (
       <div>
        <form >          
            <input ref={node => {input = node}} value={value}/>                
            <button onClick={(e) => {e.preventDefault(); onAddClick()}}> Add Count</button>
            <button onClick={(e) => {e.preventDefault(); onDelClick()}}> Delete Count</button>           
        </form>
       </div>
	)
}

Form.propTypes = {
	value: PropTypes.number.isRequired,
	onAddClick: PropTypes.func.isRequired,
	onDelClick: PropTypes.func.isRequired
}
export default Form;