0.0.20 • Published 4 years ago

@voiclet/react v0.0.20

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Voiclet React

Voiclet is a React library for using the Voiclet widget on your website. More detailed integration instructions can be found here.

Requirements

Installation

Use the package manager npm to install the library.

npm install @voiclet/react

Alternatively, you can use yarn.

yarn add @voiclet/react

Usage

import React from 'react'
import ReactDOM from 'react-dom'
import { VoicletProvider } from '@voiclet/react'

ReactDOM.render(
  <VoicletProvider clientKey='CLIENT_KEY'>...</VoicletProvider>,
  document.getElementById('root')
)

Ensure that the VoicletProvider component is only mounted once per page. If you are using Next.js, you can include the Voiclet widget on every page by including the VoicletProvider in your custom _app.jsx file.

import { VoicletProvider } from '@voiclet/react'
        
function MyApp({ Component, pageProps }) {
  return (
    <VoicletProvider clientKey='CLIENT_KEY'>
      <Component {...pageProps} />
    </VoicletProvider>
  )
}

export default MyApp

In the examples above, be sure to supplement CLIENT_KEY with your unique client key.

Support

Feel free to reach out to contact@voiclet.com for technical support.

Contributing

Pull requests are welcome.

License

MIT

0.0.20

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.18

4 years ago

0.0.19

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago