12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- import React, { Component } from "react";
- import ReactDOM from "react-dom";
- import { Button, Icon } from "antd";
- import App, { Editor } from "./App";
- import registerServiceWorker from "./registerServiceWorker";
-
- class Index extends Component {
- constructor(props) {
- super(props);
- this.state = {
- value: ""
- };
- this.handleChangeValue = this.handleChangeValue.bind(this);
- this.handleChangeSubmit = this.handleChangeSubmit.bind(this);
- }
-
- handleChangeValue(value) {
- this.setState({ value });
- console.log("handleChangeValue value: ", value);
- }
-
- handleChangeSubmit(value) {
- this.setState({ loading: true }, () => {
- setTimeout(() => {
- this.setState({ loading: false });
- }, 2000);
- });
- console.log("submit value: ", value);
- }
-
- render() {
-
- return (
- <App type={1} businessId="test">
- <Editor />
- </App>
- );
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- }
-
- ReactDOM.render(<Index />, document.getElementById("root-comment"));
- registerServiceWorker();
|