import './site.scss'; import React from 'react'; import PropTypes from 'prop-types'; import * as settingActions from 'settings/actions/setting'; import * as validator from 'shared/validators/setting'; class SettingsComponent extends React.Component { constructor(props, context) { super(props, context); this.state = { settings: { json: '', } }; this.context.store.subscribe(this.stateChanged.bind(this)); } componentDidMount() { this.context.store.dispatch(settingActions.load()); } stateChanged() { let settings = this.context.store.getState(); this.setState({ settings: { source: settings.source, json: settings.json, } }); } render() { return (

Configure Vim-Vixen

Load settings from: