src/App.js
and add the imports:.env
and .env.local
files to store your app's environment variables. Read more about that in create-react-app's section on environment variablesApp
component with this:MyView
) can use the ux4iot hooks. Now, add the MyView
component:App.js
should now look like this:create-react-app
you can start the application with:simulated-device
in the IoT Hub:temperature
telemetry. The messages look like this: