I just wrote this article with examples
Feedback welcome!
I just wrote this article with examples
Feedback welcome!
Cool! But for imports, you can just use pika.dev like this: (Yeah, ik that’s preact, react doesn’t support ESM)
import React, { Component } from 'https://cdn.pika.dev/preact@^10.3.0';
class Button extends Component {
render() {
// ...
}
}
export default Button; // Don’t forget to use export default!
Good catch! I have a new article about Pika+Snowpack coming out soon.