Skip to content

Commit

Permalink
docs: adds info about ref
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolai Lopin <[email protected]>
  • Loading branch information
Nikolai Lopin committed Jan 11, 2024
1 parent 4acbfe8 commit f7c51bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/migrating.storybook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ This is not required, you can wrap multiple components at once and avoid duplica

<InvertedPropMigrationTable />

### Review `ref` usages

We changed the place where `ref` is attached to the form components `Input`, `Password`, `PhoneInput`, etc.
If you use `ref` to reach underlying DOM elements, you no longer need to look for `input` element. Use `ref.current` directly.

## 6️⃣ Switch to new colors (if required)

Now you can easily switch to the `ModernColors` theme if your project requires rebranding:
Expand Down

0 comments on commit f7c51bc

Please sign in to comment.