Next.js Discord

Discord Forum

How can I store a pages content in a file, then render it with formatting?

Answered
DentFuse posted this in #help-forum
Open in Discord
Avatar
I have something like a blog I'd like to recreate, which has mutliple paragraphs and might have images. I was wondering how I could store this data in a file and then render is dynamically as shown in the tutorial. I tried using JSON with \n and <br /> but neither worked.
Answered by DentFuse
store normal html and parse using html-react-parser
View full answer

1 Reply

Avatar
store normal html and parse using html-react-parser
Answer