Insert the Timer Module in the Pomodoro App

In order to integrate the timer into our application, we'll need to import it.

Exercise:

Wrap the stopwatch timer implemented in Exercise 15 in an ES6 module and import it in the Pomodoro App.

Source code:

Use the PomodoroTracker7 folder as a starting point. The end result is in PomodoroTracker8.

Solution:

This is an easy exercise in case you know how to use ES6 modules.

All you need to do is write export default in front of the class name:

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.