vmware-archive / clarity

Clarity is a scalable, accessible, customizable, open source design system built with web components. Works with any JavaScript framework, built for enterprises, and designed to be inclusive.
http://clarity.design
MIT License
6.43k stars 762 forks source link

docs(react): update ref documentation #6515

Closed ashleyryan closed 2 years ago

ashleyryan commented 2 years ago

The previous example no longer worked after the switch to lib-labs/react. Also switch to using hooks instead of class components.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?