My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

What is the recommended way of storing the content from DraftJS in a database?

Ankit Balyan's photo
Ankit Balyan
·May 22, 2017

I want to try DraftJS for my next project, where the scope varies from Admin panel pages' content, to users Posts, comments, and code snippets.

What are the options available to store data, like directly DraftJS state object, or parsing it to plain content, or some other way, how?