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

Help with a React quickstart #86

Open
phtdacosta opened this issue Nov 8, 2023 · 3 comments
Open

Help with a React quickstart #86

phtdacosta opened this issue Nov 8, 2023 · 3 comments

Comments

@phtdacosta
Copy link

Your library looks incredible, Mr Maslov! Sorry for looking like a complete moron but I never worked before with wasm and I am a bit too lost trying to implement anything, just make it work with a simple create-react-app type of base. I tried to organize the React component but it looks way too much to try to adapt into a small, working, piece of component.

Would you have any small snippet on how to simply make it work with a React app? Thank you so much!

@maslick
Copy link
Owner

maslick commented Nov 8, 2023

Hi Pedro, thank you! For the React example you can use this very repo. There was no point in creating a separate repo for that. In fact it is created using create-react-app.

You can check out the vanilla-js example https://github.com/maslick/koder-vanilla-js if you wish.

@maslick
Copy link
Owner

maslick commented Nov 8, 2023

This repo doesn't provide a React component in the form of an npm library. Contrary, this repo is an integration example, which you can reuse while building your own QR-code scanner apps.

There's an npm package, however, but it only works for node.js server-side apps and Browser apps (see https://github.com/maslick/koder-vanilla-js).

@maslick
Copy link
Owner

maslick commented Nov 8, 2023

If you don't want to bother much with all the integrations (WASM, Web workers, Service workers, etc.), and all your web app needs is the ability to scan QR/bar codes, take a look at Kameroon - QR/bar code scanner as a Service https://github.com/maslick/kameroon. There are two demo apps:

Here's some description I gave on how Kameroon works: #81 (comment)

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

No branches or pull requests

2 participants