Counter
October 7, 2020 ยท View on GitHub
Shows how to make a button that modifies internal state - it increments a counter
Instructions
These examples were built with expo and spago.
npm install spago expo-cli --globalspago installspago buildnpm installnpm run startornpm run iosornpm run androidornpm run web(for web-based app preview)
Code
The entry point for the app is in App.js. Note that the compiled PureScript code is imported, and then called in the render function.