I'm building a multi-step form in React and I would like to console.log the JSON of the props at the end with all the inputted information. How would I do this?
Here is my code:
I tried the deconstructed props in the arrow function component but it didn't work.
const Final = ({
values: { one, two... }
}) => {
console.log(JSON.stringify(Final);
I managed to log the info this way, but it's not exactly what I would like:
console.log(
"Value One: " + one,
"Value Two: " + two,
....);
I deleted my previous question by accident