Answered in ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tcvXfn3zkeg.html&lc=UgwWzUsO8F4Xes96zvp4AaABAg TL;DR - localStorage is not available on the server ☺️
oh didn't know this syntax :class="{'md:pt-24' : isUwuEnabled}" I used to make like this :class="{isUwuEnabled && 'md:pt-24'}" so what's the difference ?
5 месяцев назад
It's the same thing. The second is the react way, the first one is the vue way
actually both is fine. I prefer an object though because multiple classes/conditions could occur, e.g. { 'md:pt-24': anotherCondition, 'text-red-500': andAnotherCondition }
thanks for this video Idea for your future video: create some component or plugin and add it to npm. Show all process how unify component or plug-in, then add to some project. Second idea: how add 3rd libraries written in pure js into nuxt
@@TheAlexLichter thanks for answer. About second it can be photoswipe. I tried couple times, but gave up. Exist example for vue. But I tried to use it with nuxt. It didn’t work. Idea in that, to took pure js some library and inject into nuxt as a plugin might be or how it be by best practices :)