rubeus-react-prompt

Onboards users to Rubeus before they use your application

Usage no npm install needed!

<script type="module">
  import rubeusReactPrompt from 'https://cdn.skypack.dev/rubeus-react-prompt';
</script>

README

rubeus-react-prompt

Onboards users to Rubeus before they use your application

Usage

Add the component to your project. In the index.js file (or wherever you use ReactDOM.render()), wrap your entire app with the prompt:

import React from 'react'
import ReactDOM from 'react-dom'
import RubeusPrompt from 'rubeus-react-prompt'
import App from './App'

ReactDOM.render(
  <RubeusPrompt appName='Your App'>
    <App>
  </RubeusPrompt>,
  document.getElementById('root')
)

Your app will only be rendered once the user has installed Rubeus. Otherwise, they will see instructions on how to get it set up.

License

The code in this repository is licensed under the Open BSV License.