title: How to create undo/redo buttons in Quill JS (react-quill)?
body: <p>QuillJS doesn't come with default undo/redo buttons. I'm trying to add them to the toolbar. Quill has a folder with the undo/redo icons saved. In the node_modules, there's also undo() and redo() functions. I'm kind of new to coding and don't know how to access these things and make them work. I'm using React. Here's my code so far:</p>
  
  <pre><code>import ReactQuill from 'react-quill';
  import 'react-quill/dist/quill.snow.css';
  import 'react-quill/dist/quill.bubble.css';
  
  class QuillTextEditor extends Component {
      constructor(props) {
          super(props);
  
          this.modules = {
              toolbar: [
                [{ 'header': [false, 1, 2, 3] }],
                [{ 'align': [] }],
                ['bold', 'italic', 'underline',],
                [{'list': 'ordered'}, {'list': 'bullet'}],
                [{ 'indent': '-1'}, { 'indent': '+1' }],
                [{ 'script': 'super' }, 'strike'],
                [{ 'color': [] }, { 'background': [] }], 
                ['link', 'image'],
              ]
          };
  
          this.formats = [
              'header',
              'align',
              'bold', 'italic', 'underline', 
              'list', 'bullet',
              'indent', 'indent',
              'script', 'strike',
              'color', 'background',
              'link', 'image',
          ];
      }
  
      render() {
          return (
            &lt;div&gt;
              &lt;ReactQuill 
                  theme="snow"  
                  modules={this.modules}
                  formats={this.formats} 
                  value={''}/&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          );
      }
  
  }
  
  export default QuillTextEditor;
  </code></pre>
  
  <p>Does anyone know exactly what code I would need to write and where in order to add undo/redo icons to the toolbar that are connected to the undo/redo functions build into Quill? I've been trying for days and can't figure it out.</p>