3 ms·
this code isn't what's rendered. there's something about `this.textContent - ${year}` but that's not what we're seeing in output.
by cranberryturkey 3y ago
this code isn't what's rendered. there's something about `this.textContent - ${year}` but that's not what we're seeing in output.
- throwaway143829 3y agoYeah, I'm very confused by this. Why is the example also showing a hard-coded 2023 in the component usage? Shouldn't the component be responsible for rendering that?
- sphars 3y agoI believe it's because the `${this.textContent} - ${year}` will render it as `2023 - 2024`. The hardcoded 2023 can be whatever you want as to indicate the start of the copyright.