Add displayName to contexts (#8814)
This commit is contained in:
@@ -8,6 +8,7 @@ const Context = React.createContext({
|
||||
reduceMotionEnabled: false,
|
||||
screenReaderEnabled: false,
|
||||
})
|
||||
Context.displayName = 'A11yContext'
|
||||
|
||||
export function useA11y() {
|
||||
return React.useContext(Context)
|
||||
|
||||
Reference in New Issue
Block a user