MCPcopy Create free account
hub / github.com/adobe/react-spectrum / TestComponent

Function TestComponent

packages/react-aria/test/i18n/languagechange.test.js:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15import React from 'react';
16
17function TestComponent() {
18 let locale = useLocale();
19 return (
20 <div>
21 <div data-testid="locale">{locale.locale}</div>
22 <div data-testid="direction">{locale.direction}</div>
23 </div>
24 );
25}
26
27function languageProps(language) {
28 return {

Callers

nothing calls this directly

Calls 1

useLocaleFunction · 0.90

Tested by

no test coverage detected