React SDK Reference

The provider and hooks exposed by @getuserfeedback/react for React-based integrations.

Last reviewed

React SDK Reference

The React SDK wraps the same runtime model in a provider plus hooks.

Public surface

  • GetUserFeedbackProvider
  • useGetUserFeedback()
  • useFlow({ flowId, prefetchOnMount?, hideCloseButton?, container? })
  • useDefaultFlowContainer()

How to think about it

  • GetUserFeedbackProvider owns the client instance
  • useGetUserFeedback() gives you the same core methods as the JavaScript SDK
  • useFlow() is the shortest path to open, prefetch, prerender, and custom container behavior from components

If you already understand the JavaScript SDK, the React layer is mostly a React-native way to access the same runtime.