I'm building a quiz for my React/Gatsby blog. I'm trying to display a code snippet. I have stored the code snippet in a JSON file. This is how it's being displayed in the browser -
I've tried creating a new line using but it doesn't work -
"class Student attr_accessor :name def name @name end end"
Any suggestions would be appreciated.
1.4m articles
1.4m replys
5 comments
56.9k users