You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React dangerouslySetInnerHTML "is React’s replacement for using innerHTML in the browser DOM. In general, setting HTML from code is risky because it’s easy to inadvertently expose your users to a cross-site scripting (XSS) attack. So, you can set HTML directly from React, but you have to type out dangerouslySetInnerHTML and pass an object with a __html key, to remind yourself that it’s dangerous."
💾 Setup
Install dependencies using npm i
Add GCP project credentials etc. as per tutorial
npm run dev runs the Next app in the development mode. Open http://localhost:3000 to view it in the browser.
npm run lint lints all files using ESLint - no warnings or errors
🔧 Testing
N/A
💻 Code Examples
function to display the posts with link to content page