0.3.2 • Published 5 years ago
react-vtl-editor v0.3.2
react-vtl-editor
A react VTL editor
The documentation can be found in the docs folder and browsed online.
Storybook is also available online.
Usage
import React, { useState } from 'react';
import { VtlEditor } from 'react-vtl-editor';
const MyComponent = () => {
const [value, setValue] = useState('');
const [valid, setValid] = useState(true);
return (
<>
<VtlEditor handleValue={setValue} handleValid={setValid} />
<div>{`My expression text : ${value}`}</div>
<div>{`Is my expression valid : ${valid}`}</div>
</>
);
};
export default MyComponent;
How to improve the library locally
In order to avoid some errors with the React library and your React application (two versions of React loaded by browser), you should not use the npm link
command. You should prefer the npm pack
command. You should have a look to this blog post for more informations.
Todo
- work on UI customization of the component
0.3.2
5 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.5
6 years ago
0.2.4
6 years ago
0.2.3
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.1.12
6 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago