Commit 86c2d4e
Lenses docs (#1153)
* Add initial documentation for lenses
* Add documentation and links for `useLens` component in ApiGallery and MenuLinks
* Enhance `uselens.mdx` documentation with detailed examples for basic usage, addressing common challenges in managing complex forms in React. Updated sections include type-safe field access, component reusability, and prop drilling issues.
* Refactor `uselens.mdx` documentation by improving section headings and removing outdated examples. Added clarity to the motivation and core operations sections, while optimizing the structure for better readability.
* Enhance `uselens.mdx` documentation by adding comprehensive sections on core types, hooks, and lens operations. Included detailed examples for `useLens`, `reflect`, and `interop` methods, improving clarity and usability for developers working with React Hook Form integration.
* Refine `uselens.mdx` documentation by enhancing clarity and consistency in examples. Updated sections on core types, hooks, and lens operations, ensuring type-safe usage and improved readability for developers integrating with React Hook Form.
* Add badges for NPM version, downloads, and GitHub stars in `uselens.mdx` documentation to enhance visibility and provide quick access to package metrics.
* Revise `uselens.mdx` documentation to clarify challenges in managing complex forms with React Hook Form. Updated sections on type safety, component reusability, and error-prone string-based field paths, enhancing overall readability and developer guidance.
* Update ApiGallery component description to provide a clearer explanation of `useLens` functionality, emphasizing type-safe lenses for reusable form components and composability.
* Refine `uselens.mdx` documentation and `ApiGallery` component description for improved clarity. Updated language to emphasize type-safe manipulation of data structures and streamlined explanations of core functionalities, enhancing overall readability for developers.
* Fix formatting issues in `uselens.mdx` documentation by removing unnecessary semicolons and streamlining component examples for improved clarity and consistency.
* Fix minor formatting issue in `uselens.mdx` by removing an unnecessary semicolon in the `SharedComponent` example for improved code clarity.
* Remove NPM badges from `uselens.mdx` documentation to streamline content and focus on the core functionalities of the `useLens` hook.
* Enhance `uselens.mdx` documentation by adding detailed sections on the `useLens` hook, including props, dependency array usage, and core operations. Improved clarity with examples and performance optimization tips, ensuring better guidance for developers working with complex forms in React Hook Form.
---------
Co-authored-by: Beier (Bill) <bluebill1049@hotmail.com>1 parent 8cc05b4 commit 86c2d4e
3 files changed
Lines changed: 630 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
165 | 179 | | |
166 | 180 | | |
167 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
0 commit comments