docs: Fix documentation errors in FAQ page #1176
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes several documentation errors found in the FAQ page, including typos, JavaScript syntax errors, React Hook dependency issues, markdown escaping problems, and misplaced code examples.
Changes
1. Fixed typo in "React Hook Form, Formik or Redux Form?" section
Changed "Additionallly" to "Additionally" (removed extra 'l').
2. Fixed JavaScript syntax in "How to share ref usage?" section
The JavaScript example incorrectly used TypeScript's non-null assertion operator (
!).3. Fixed React Hook dependency in "What if you don't have access to ref?" section
Added missing
registerdependency to theuseEffecthook dependency array to comply with React Hooks rules.4. Fixed markdown escaping in "How to work with modal or tab forms?" section
Removed unnecessary backslash escaping from inline code around
useForm.5. Removed misplaced code in "Why is the first keystroke not working?" section
Removed IE11 import examples that were unrelated to the question about first keystroke issues. These imports don't provide relevant information for troubleshooting the
valuevsdefaultValueproblem described in the section.