diff --git a/examples/multiple-classes.html b/examples/multiple-classes.html new file mode 100644 index 00000000..b3a42524 --- /dev/null +++ b/examples/multiple-classes.html @@ -0,0 +1 @@ +placeholder \ No newline at end of file diff --git a/examples/multiple-classes.js b/examples/multiple-classes.js new file mode 100644 index 00000000..559f3ff6 --- /dev/null +++ b/examples/multiple-classes.js @@ -0,0 +1,30 @@ +/* eslint no-console:0 */ +import 'rc-input-number/assets/index.less'; +import InputNumber from 'rc-input-number'; +import React from 'react'; +import ReactDOM from 'react-dom'; + +class Component extends React.Component { + state = { + value: 5, + }; + onChange = (value) => { + console.log('onChange:', value); + this.setState({ value }); + } + render() { + return ( +