I’m following this guide, and getting the data to show up no worries. What I’m struggling with however, is if I want some HTML in my json file, for example, if I want to add a class to part of a string. Is the only way to do this using dangerouslySetInnerHTML?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How to Load Data from a JSON File in Next.js | 3 | 20 | December 8, 2024 | |
Next.js interactive resources with TutorialKit | 7 | 58 | November 22, 2024 | |
How to add a schema markup in nextjs 14 | 2 | 10 | October 8, 2024 | |
How to set headers? | 4 | 11 | December 12, 2024 | |
Writing/reading from the Vercel file system | 2 | 18 | October 21, 2024 |