3 ms·
The browser does supply a huge number of APIs. To set one of the Minesweeper tiles to bomb, you could do: tiles[x][y].className='bomb'; And you are done. The
by TekMol 6y ago
The browser does supply a huge number of APIs.
To set one of the Minesweeper tiles to bomb, you could do:
tiles[x][y].className='bomb';
And you are done. The rendering will nicely take place according to what you defined in the CSS.
- Exuma 6y agoWhat are you talking about? You're just talking about simple class manipulation which has nothing to do with actual reactivity, especially 2-way data binding. How would you support that with your "templating engines" you keep mentioning, which to me doesn't mean anything at all, in my understanding of what a templating engine is like handlebars.