Do you want to see what's actually coming in from the props?
The JSON.stringify() creates a JSON string out of the props and you will see everything that's coming in from the routes.
The third argument of JSON.stringify(data, replacer, space) is the number of spaces to use for pretty formatting. That means, if you set 4 as your space parameter, the result would be more indented.
You will see something like this, on your page:
{
"name": "Isaque Igor",
"id": 1,
"email" : "email@email.com",
"roles": {
"isDeveloper": true,
"isAdmin": true
}
}
Top comments (0)