tawk / tawk-messenger-react

Official React plugin for Tawk messenger
https://www.tawk.to
Other
23 stars 15 forks source link

Minor documentation error #8

Closed zehawki closed 2 years ago

zehawki commented 2 years ago

Thank you for this component, works just fine.

Here in the doc: https://help.tawk.to/article/react-js :: How to use callbacks and expose functions

This

        <TawkMessengerReact
          propertyId="property_id"
          widgetId="default"
          useRef={tawkMessengerRef}
        />

should be

        <TawkMessengerReact
          propertyId="property_id"
          widgetId="default"
          ref={tawkMessengerRef}
        />

The prop should be ref not useRef.

jaoaustero commented 2 years ago

@zehawki Thank you, will update our content team

jaoaustero commented 2 years ago

@zehawki Documentation is updated, thank you very much.