(type, newFoo, newNestedFoo)
| 50 | }) |
| 51 | |
| 52 | const handleDep = (type, newFoo, newNestedFoo) => { |
| 53 | console.log(`(${type}) foo is now: ${newFoo}`) |
| 54 | console.log(`(${type}) nested foo is now: ${newNestedFoo}`) |
| 55 | text('.dep', newFoo) |
| 56 | text('.nested', newNestedFoo) |
| 57 | } |
| 58 | |
| 59 | import.meta.hot.accept('./logo.svg', (newUrl) => { |
| 60 | setImgSrc('#logo', newUrl.default) |