(type, newFoo, newNestedFoo)
| 37 | }) |
| 38 | |
| 39 | const handleDep = (type, newFoo, newNestedFoo) => { |
| 40 | log(`(${type}) foo is now: ${newFoo}`) |
| 41 | log(`(${type}) nested foo is now: ${newNestedFoo}`) |
| 42 | text('.dep', newFoo) |
| 43 | text('.nested', newNestedFoo) |
| 44 | } |
| 45 | |
| 46 | import.meta.hot.accept('./logo.svg', (newUrl) => { |
| 47 | setImgSrc('#logo', newUrl.default) |