Next.js-Blog-App
Next.js-Blog-App copied to clipboard
How content is rendered?
I was going through the code. When you create the post you save the editor.getJSON() to the supabase.
But you directly rendering the JSON according to code
<div className="relative mx-auto max-w-3xl border-slate-500/50 py-5">
<div
className="lg:prose-md prose"
dangerouslySetInnerHTML={{ __html: post.content || "" }}
/>
</div>
How it is working?