|
|
|
|
|
by gedy
3222 days ago
|
|
For many codebases, Preact can be use simple as: npm i -S preact preact-compat
then add this to webpack config: {
"resolve": {
"alias": {
"react": "preact-compat",
"react-dom": "preact-compat"
}
}
}
https://preactjs.com/guide/switching-to-preact |
|
If you're starting from scratch pretty easy though, sure. But that assumption is all too widespread in the JS ecosystem these days : (