Add frontend tests and other stuff
[recipes.git] / frontend / index.js
1 // Note that a dynamic `import` statement here is required due to
2 // webpack/webpack#6615, but in theory `import { greet } from './pkg';`
3 // will work here one day as well!
4 const rust = import('./pkg');
5
6 rust
7 .then(m => m.greet('Paul!'))
8 .catch(console.error);