Samuel
@samuel.fm
really goes to show how underappreciated modern web tooling is. API design like React's dangerouslySetInnerHTML={{__html: ... }} means that you just don't see this shit in React projects
1 8
Samuel
or Vercel's sql`INSERT INTO users VALUES ${user.id}`, which due to the magic of tag functions is categorically impossible to inject stuff into
1 1
stellz
what I don't get about these is why they get their own special boy syntax when a regular function would do
2 2
stellz
oh they're very cool. they're sort of a fix for weakness in the type system at the string-parsing boundary
1 2
thought agent jabsco 🏁
for interpolation passing - the function ahead of the template string receives the values within ${} *before* serialization, so you can use it for stuff like passing a proxy object for reactive mapping
1