We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In https://react-spectrum.adobe.com/react-aria/Calendar.html#calendargridheader the hook is called conditionally: let formatted = date ? useDateFormatter().format(date) : 'None';
let formatted = date ? useDateFormatter().format(date) : 'None';
which is a bad practice in react. I'd suggest something like this, or alike:
const {format}= useDateFormatter(); let formatted = date ? format(date) : 'None';
No response
The text was updated successfully, but these errors were encountered:
Looks like a fine alteration. The general guiding principles of our docs is to keep the examples short, this won't expand it by much.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
🙋 Documentation Request
In https://react-spectrum.adobe.com/react-aria/Calendar.html#calendargridheader
the hook is called conditionally:
let formatted = date ? useDateFormatter().format(date) : 'None';
which is a bad practice in react. I'd suggest something like this, or alike:
🧢 Your Company/Team
No response
The text was updated successfully, but these errors were encountered: