This directory contains a simple example of how to use Avrgirl Arduino with React.
This React project was bootstrapped with Create React App. Most of the functionality is contained within /src/App.js
. This example uses the UMD AvrGirl Arduino library distribution which allows it to be imported and bundled.
The fastest way to run this example is to git clone this repository and run the app locally.
- Install NodeJS
- In your terminal, run
git clone https://github.com/noopkat/avrgirl-arduino
- Run
cd avrgirl-arduino/tests/demos/webserial/react-demo
- Run
npm install
- Run
npm start
. Openhttp://localhost:3000
in Chrome to play with the app.
The Web Serial API is currently in development and is only available behind a flag on the stable branch of Chrome. Please enable the #enable-experimental-web-platform-features
flag in chrome://flags
to run this example.