This is a template repository demonstrating the use of sql.js with create-react-app.
The only differences with a traditional create-react-app application are :
- The usage of react-app-rewired to allow providing a custom webpack configuration
- a custom
config-overrides.js
to copy the wasm module from sql.js to the distributed assets
Note that you should make sure your server serves .wasm
files with the right mimetype, that is: application/wasm
. Otherwise, you'll see the following warning in the console: TypeError: Response has unsupported MIME type
See src/App.js
for the code.