The correct syntax to consume context in a functional component is const context = useContext(ContextName);