**Here is the code!!**
Actually very new to react and i am working on a project which is about to-do list but while doing this i am stuck on rendering the output of the input field in the list item. if there is another solution like without the list group it would be very helpful!

Where i am doing the actual mistake please someone look upon this
Thanks in advance!

```
import React, { Component, Fragment } from "react";
class MainPage extends Component {
  state = { data: "" };
  handleChange = (e) => {
    e.preventDefault();};
  handleSubmit = (e) => {
    e.preventDefault();

    this.setState({ data: e.target.value });
  };

render() {
    const mystyle = {
      padding: "16px 16px 16px 60px",
      textAlign: "start",
      fontSize: "24px",
      fontFamily: 'Helvetica Neue", Helvetica, Arial, sans-serif',
      width: "500px",
    };

return (
  <Fragment>
    <h1 className="display-1 text-center" style={{ color: "#f7c6c6" }}>
      todos
    </h1>
    <form className="todo-form" onSubmit={this.handleSubmit}>
      <input
        type="text"
        onChange={this.handleChange.bind(this)}
        className="new-todo shadow-lg p-3 mb-5 bg-white rounded"
        style={mystyle}
        placeholder="What needs to be done?"
      />

      <button className="btn btn-primary btn-sm ml-3">Submit</button>

      <ul className="list-group">
        <li
          className="list-group-item disabled p-3 mb-5 w-50 p-3 mx-auto "
          style={{ width: "200px", fontSize: "24px" }}
        >
          {this.state.data}
        </li>
      </ul>
    </form>
  </Fragment>
);}}

```

export default MainPage;