i4DM Interview Question

The below component needs to be refactored as a function component using the useContext React hook. Select the answer that contains a correct refactoring. (This was multiple choice. You got a code snippet along with some options to choose from) CODE SNIPPET: import { NameContext, AgeContext } from "./ProviderComponent"; export class ConsumerComponent extends Component { render() { return ( {(name) => { return ( {(age) => ( Name: {name}, Age: {age} )} ); }} ); } }