• coloredgrayscale@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Look at the screenshot at the beginning of the article. Every possible state is stored in a div, with the state encoded in its Id. So it’s possible to reuse such “duplicate” states.

    Strictly speaking, it would not be allowed for the same ID to occur multiple times.