镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Public template

About

A demonstration showing how to use sql.js with create-react-app

Topics

Resources

Stars

116 stars

Watchers

3 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

demonstration of react + sql.js

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 craco to allow providing a custom webpack configuration
  • a small custom webpack configuration in craco.config.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 error: TypeError: Response has unsupported MIME type

See src/App.js for the code.

About

A demonstration showing how to use sql.js with create-react-app

Topics

Resources

Stars

116 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages