Inline script tags moderniseren voor templates en JS API

Sorry for my slow reply, I’m a bit swamped recently.

Very nice!! It works, it just had these two backwards:

        this.imageSrc = images[randPick];
        this.imageHref = goTo[randPick];

I need to read up on the @tracked thing (I don’t even know what to call it, tracked variables?) as well as that constructor method. I also don’t quite understand how or at what point the shouldRender method runs.

Thanks so much for your help with this, I never would have known to use those methods by myself.

2 likes