mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-07 08:53:25 +01:00
11 lines
284 B
JavaScript
11 lines
284 B
JavaScript
import React from 'react';
|
|
|
|
export default class CheckboxControl extends React.Component {
|
|
|
|
render() {
|
|
let {onChange, value} = this.props;
|
|
return <input type='checkbox'
|
|
defaultValue={value}
|
|
onChange={e => onChange(e.target.value)} />
|
|
}
|
|
}
|