0.3.0 • Published 1 year ago

@feedback-otter/react v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Feedback Otter React

"You Otter be collecting feedback"

THIS PACKAGE IS NOT READY FOR USE YET

I'll be using the README to do document driven development through this project.

The open source feedback collecting toolchain for React

Getting Started

  1. Import the client
import { FeedbackClient } from '@feedback-otter/client'
  1. initialize with your backend communication
  • REST - POST request (PUT is also available with field restRequest:"PUT")
  • GraphQL - Mutation with the following schema message: String, location: String, context: JSON
  • tRPC -
  • Raw WebSocket
  • Socket.io
const client = new FeedbackClient({
  requestType: 'REST',
  url: 'https://example.com/feedback',
})
  1. Use the provider
<FeedbackProvider client={feedbackClient}>{children}</FeedbackProvider>
  1. Optional - Cloudflare Turnstile or Google Recaptcha

Examples

See the examples folder for how to use the React components

  • Next.js REST example
  • Redwood.js GQL example
  • SPA & separate backend example
0.3.0

1 year ago

0.2.1

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago