The previous code examples on the website sometimes used untyped 'useState' hooks. This made it sometimes difficult to understand the code. My changes add strong typing (i.e. useState<Date>()) to wherever the code was not self explanatory.
Also, these changes unify the code examples, since some of them had strongly typed hooks and others did not.
Type of Change
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation update
Checklist
Before submitting your pull request, please make sure the following is done:
Description
The previous code examples on the website sometimes used untyped 'useState' hooks. This made it sometimes difficult to understand the code. My changes add strong typing (i.e.
useState<Date>()
) to wherever the code was not self explanatory.Also, these changes unify the code examples, since some of them had strongly typed hooks and others did not.
Type of Change
Checklist
Before submitting your pull request, please make sure the following is done:
Linked Issues
None
Test Plan
Not needed
Screenshots (if appropriate)
Not needed
Further Comments
None