Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
479 Bytes
import { PureComponent } from 'react';
import CountedTextarea from 'calypso/components/forms/counted-textarea';
export default class extends PureComponent {
static displayName = 'CountedTextareas';
state = {
value: 'Hello World!',
};
onChange = ( event ) => {
this.setState( {
value: event.target.value,
} );
};
render() {
return (
<CountedTextarea
value={ this.state.value }
onChange={ this.onChange }
acceptableLength={ 20 }
/>
);
}
}