Комментарии:
Great Vedio, very helpful
ОтветитьAwesome video Kevin! It is a very helpful use-case. Thank you so much for this
ОтветитьCan I ask what font do you use in the video?
ОтветитьWhy we can't do something like
const FontSize = {
.......
tiny: tiny,
get extraSmall() {
console.warn('warning...')
return this.tiny
}
.......
}
You can literally just set the forntsizes extralarge to the new translation. The proxy isnt doing anything magical.
FontSizes.ExtraLarge.Value
When you have to update your code for depricated values you can just set the value from the object. What is it that a proxy can do that cant be done in a simple return value or if then statements?
This is super helpful, thank you
ОтветитьAmazing video, you just earned yourself a new subscriber!
ОтветитьGreat video! I've found of a use-case for proxies before, but this seems really useful.
Ответить