Installation
npm install --save vico
Usage with React
import React from 'react';
import Vico from 'vico';
export class Test extends React.Component {
state = {
content: '',
};
onChange(value) {
this.setState({ content: value });
}
render() {
return (
<div>
<Vico value={this.state.content} onChange={::this.onContentChange} />
<textarea>{this.state.content}</textarea>
</div>
);
}
}
Usage without React
See demo/
folder for example of usage in non-React project.