This is a simple example demonstrates how to lazy load Riot.js components @riotjs/lazy.
Download or clone this repo.
Install packages.
$ npm install
And then run the server using webpack-dev-server or any possible way you know
webpack-dev-server
$ npm start