How we could move each block to its own file

easy!<br />
Create a file called blocks.js and just do

import './path/to/block.js';

for each block. Then in the html we can do

<script src="blocks.js" type="module"></script>
Edit

Pub: 27 May 2024 18:30 UTC

Views: 19