Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // app/javascript/components/NewPost.js
- render() {
- return (
- <div>
- <h1>New Post</h1>
- <form>
- <input
- name="title"
- placeholder="title"
- type="text"
- />
- <input
- name="body"
- placeholder="body"
- type="text"
- />
- <button>Create Post</button>
- </form>
- </div>
- )
- }
Add Comment
Please, Sign In to add comment