tag in React and JSX-猫巷女王i的回答
tag in React and JSX
I am trying to use the pre tag inside of JSX.When you use the pre tag in JSX, it doesn\'t format at all. Why? In order to use the pre tag I need to do something like this:>
use
{JSON.stringify(yourdataobject, null, 2)}
to render objects