DEV Community

Cover image for Using React Hooks with Django through Svelte and MQTT hub
Dr Abstract
Dr Abstract

Posted on

Using React Hooks with Django through Svelte and MQTT hub

Not everything has to be complicated. The code below is all you need to get started with an AMAZING world of Interactive Media. I have been coding for 40 years ever since Fortran was a thing. I have tried lots of libraries, platforms, etc. If you are at all visually creative and just want to have fun coding and make cool stuff here is the code you need to get started.

<!doctype html>
<meta charset="utf-8" />
<title>ZIM - Code Creativity</title>
<script src=""></script>
<script src=""></script>
const frame = new Frame("fit", 1024, 768, light, dark);
frame.on("ready", () => {
    const stage = frame.stage;
    let stageW = frame.width;
    let stageH = frame.height;

    // put your code here
    new Circle(100, red).center().drag();

<meta name="viewport" content="width=device-width, user-scalable=no" />
Enter fullscreen mode Exit fullscreen mode

You will be called a Front-End Developer working on the open-source HTML 5 Canvas with JavaScript and ZIM -

Alt Text

ZIM is new and extremely powerful and fun to code with. You can take a look at the Dev site if you must but we suggest you press on the TEN BANNERS on the front page of the types of things perfect for Canvas coding or check out the examples at and see if you might want to make these very colorful and fun apps.

If you want a quick taste of what the code will do go to and type:

new Blob({color:purple}).center();
Enter fullscreen mode Exit fullscreen mode

The Intro page at shows a good cross-section of what can be done with ZIM and there is a huge Learn section at as well as lots of videos at If you are on CodePen here is a ZIM CodePen Topic - just fork any of the many templates or examples there. Cheers and sorry for the title - did we get you?

Dr Abstract

If you have not checked out the Canvas recently - you simply must! Here is the ZIMย Devย Site and some In-depthย Guides by Drย Abstract including Your Guide to Coding Creativity on the Canvas.

Top comments (2)

giorgosk profile image
Giorgos Kontopoulos ๐Ÿ‘€

Yeah misleading title, a turnoff, otherwise would be interesting post

zimlearn profile image
Dr Abstract

Well... after dozens of hopefully interesting posts with not much interaction, we thought we would goof around a bit and see what happens. A sort of parody on the fast moving Dev world. Thanks for the comment! Yay - interaction!