120 karma · joined October 23, 2015
tylerdeitz.com
I'm particularly excited about the typed routing system we were able to achieve with some new typescript language features such as Variadic Tuples[1] and Template Literal Types[2].
[1] https://www.typescriptlang.org/docs/handbook/2/template-lite...
[2] https://www.typescriptlang.org/docs/handbook/release-notes/t...
class Test {
async render() {}
}
Kind of hard to come up with a concrete use-case with how little we know about the new features. Still super interesting though!For example, in bootstrap or some other older layout framework every "column" would need to contain some class or id to style it correctly. So for a 3 column grid you would need to give each element a class setup of something like "column-third".
With grid, all that layout logic is moved into a single container "display: grid" element, making it so much easier to add/remove/edit grid items. Even padding is declared in the container element with the "grid-gap" property! It's a small improvement that has immensely increased my developer experience building grid-like UI.