Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in the "@crypptr/cryptr-react" module path (React SDK Docs) #70

Closed
maximeoger opened this issue May 2, 2024 · 0 comments · Fixed by #71
Closed

Typo in the "@crypptr/cryptr-react" module path (React SDK Docs) #70

maximeoger opened this issue May 2, 2024 · 0 comments · Fixed by #71

Comments

@maximeoger
Copy link

Hello Cryptr team 👋

I think there is a typo in the Cryptr React sdk in the README.md. Not a big deal, but can be confusing sometimes :)

import React, { ReactElement } from 'react'
import { BrowserRouter as Router, Route } from 'react-router-dom'

// import from cryptr SDK
import { CryptrProvider } from '@crypptr/cryptr-react' <- here, should be 'cryptr'

const config = {/*... your config */}

const AppContainer = (): ReactElement => {
  return (
    <Router>
      // your routes
    </Router>
  )
}

const App = (): ReactElement => {
  <CryptrProvider {...config} >
    <AppContainer />
  </CryptrProvider>
}

return default App
@tuxtux59 tuxtux59 linked a pull request May 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant