What is a Todo app without some clocks!? Well, still a Todo app, but certainly not as fun as one with the clocks!
So, let's add a couple of clocks to our app, to help us track time while we perform our tasks (and to demonstrate
For this, we will use
react-clock library from NPM. We can add it to our project as a dependency like this:
Run (if it is already running, stop it first and then run it again)
to have Wasp download and install new dependency (that happens on start of
Next, let's create a new component
Clocks where we can play with the clocks.
And let's import it in our main React component.
As you can see, importing other files from
/ext is completely normal, just use the relative path.
That is it! We added a dependency and used it in our project.