This makes properties and state type-safe, i.e. work better for TypeScript projects. Also close the file watch properly after the component unmounts. That should never happen in practice for *this case*, but this is example/model code, so let's be correct. |
||
|---|---|---|
| .. | ||
| app.jsx | ||
| app.scss | ||
| index.html | ||
| index.js | ||
| manifest.json | ||