Re:Introducing Hooks
by tln on Thursday October 25, 2018 @08:58PM
(#18305957)
I don't think this will work, when I just tried to add a property in a template function I get:
Cool idea though
[ Parent
| on HN ]
You don't add properties to the strings object, but use is as a key into a WeakMap.
The strings object doesn't seem to differ based on call site.
> f = l => l
[Function: f]
> f`hi` === f`hi`
true