# Custom editor in React

# Overview

You can declare a custom editor for the HotTable component by declaring it as a class and passing it to the Handsontable options or creating an editor component.

# Example - Declaring an editor as a class

The following example implements the @handsontable/react component with a custom editor added, utilizing the placeholder attribute in the editor's input element.