1.0.0 • Published 5 years ago
preact-async-component v1.0.0
#Preact Async Component
For SSR combine with babel plugins :
it will transform all import to require in node
Babel Config
{
"plugins": [
...
"babel-plugin-dynamic-import-node-sync"
...
]
}
Demo
<AsyncComponent getComponent={ () => import('./components-file') }/>
1.0.0
5 years ago