Passing Multiple Arguments to Function in React
A stateless functional component like the one you have written gets all the props as the first argument.
function OutputContent(props) {
console.log(props.data);
console.log(props.level);
return <p>A simple example</p>;
}
So if you want to use destructuring, make sure you desctructure all the props from the same object.
function OutputContent({data, level}) {
console.log(data);
console.log(level);
return <p>A simple example</p>;
}