Example module for creating posts/body content
converting to and from raw JS with Draft.js
This project was bootstrapped with Create React App.
Sample output to back-end + db (after converting contentState object to HTML string)
{
"_id" : ObjectId("5a5848728c39f27072840d59"),
"updatedAt" : ISODate("2018-01-12T05:32:34.601Z"),
"createdAt" : ISODate("2018-01-12T05:32:34.601Z"),
"subject" : "Hello World",
"contentData" : "<p>The is a sample email!</p>\n",
"__v" : 0
}