import React from 'react'; import 'codemirror/theme/duotone-light.css'; import { changeOption } from './utils'; import { CodeHinter } from '../../CodeBuilder/CodeHinter'; class Redis extends React.Component { constructor(props) { super(props); this.state = { options: this.props.options, }; } componentDidMount() { this.setState({ options: this.props.options, }); } render() { const { options } = this.state; return (
{options && (
changeOption(this, 'query', value)} />
)}
); } } export { Redis };