concept div in category svelte

appears as: div, div
Svelte and Sapper in Action

This is an excerpt from Manning's book Svelte and Sapper in Action.

Note the use of reactive declarations in the preceding code. When the value of interestRate, loanAmount, or years changes, the value of payment is recomputed and displayed in the div element at the bottom.

In the sample Sapper app, we can add the following file in src/routes/blog to place the content of each blog entry inside a div with a light blue background (see figure 16.1).