onijim/owl-table

View on GitHub
react_components/inputs/OwlTextInput.js

Summary

Maintainability
A
0 mins
Test Coverage
var OwlTextInput = React.createClass({
    displayName: 'OwlTextInput',
    getDefaultProps: function () {
        return {
            onChange: function () {},
            cell: {
                recordId: '',
                columnField: ''
            }
        };
    },
    render: function () {
        return <input type="text" {...this.props} onChange={this.props.onChange.bind(this, this.props.cell)} />;
    }
});