I'm having trouble with internested brackets in React JS. I want to remove the comment form at the base of this webpage:
https://codepen.io/Teeke/pen/rNOmYzb
The entire code to generate the comment form is here:
var AddPostForm = React.createClass({ displayName: "AddPostForm",
createPost: function (event) {
event.preventDefault();
// take the data from the form and create an object
var post = {
title: this.refs.title.value,
name: this.refs.name.value,
desc: this.refs.desc.value,
image: this.refs.image.value };
// add the post to the App State
this.props.addPost(post);
this.refs.postForm.reset();
},
render: function () {
return (
React.createElement("div", { className: "callout secondary form-area" },
React.createElement("h5", null, "Comments!"),
React.createElement("form", { className: "post-edit", ref: "postForm", onSubmit: this.createPost },
React.createElement("label", null, "Post Title",
React.createElement("input", { type: "text", ref: "title", placeholder: "Post Title", required: true })),
React.createElement("label", null, "Your Name",
React.createElement("input", { type: "text", ref: "name", placeholder: "Full Name required", required: true })),
React.createElement("label", null, "Tell the World",
React.createElement("textarea", {
ref: "desc",
placeholder: "Write your post here", required: true })),
React.createElement("label", null, "Image URL - ", React.createElement("span", { className: "highlight" }, "use this one to test ''"),
React.createElement("input", { type: "url", ref: "image", placeholder: "The URL of the featured image for your post", required: true })),
React.createElement("button", { type: "submit", class: "button" }, "Add Post"))));
} });
1) I removed lines 227 to 267
2) I removed the following line
React.createElement(AddPostForm, { addPost: this.addPost }))));
3) I removed the closing brace } in line 222.
4) Removing various combinations of } }); still breaks the code.
What lines do I need to remove to remove the comments form without breaking the code?

