jsketcher/modules/ui/components/controls/TextControl.jsx
2018-01-19 01:25:26 -08:00

13 lines
370 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import InputControl from './InputControl';
export default class TextControl extends React.Component {
render() {
let {onChange, initValue} = this.props;
return <InputControl type='text'
defaultValue={initValue}
onChange={e => onChange(e.target.value)} />
}
}