No video

Create A Vue App With Render Functions Tutorial! What Is it?

  Рет қаралды 11,522

Program With Erik

Program With Erik

Күн бұрын

Пікірлер: 26
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
What do you guys think of Render functions?
@encryptedkenyan
@encryptedkenyan 4 жыл бұрын
Bruh.. This is awesome! Great examples :D !
@hcmlopes
@hcmlopes 4 жыл бұрын
Could you share an example of when you would use this in the real world? I understand how you can dynamically change the tag but I fail to see how this is even needed most of the times. It's a naive though of my part but I just don't have any use cases that I can think of
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
Render functions work really well with renderless components. I'll have to give an example of that in the future. For example, if you wanted to wrap a 3rd party library in Vue. You could using a renderless component with a render function that only has a scoped slot it. Then wrap that in any content that you need to be effected by the 3rd party library. Also, sometimes you want a really simple component, that only does 1 thing, and you want it to be really fast. Render functions tend to be a bit faster then templates
@justafreak15able
@justafreak15able 3 жыл бұрын
I don't know if you need an example now but this is for people watching now. And a simple example would be a toast or a custom alert. you can make a showToast mixin and in that mixin, you use the render function to create your elements. And you can do this this.showToast("Toast Message"); this will work great if you have to show toast on different pages. No no importing toast components. Bootstrap-Vue toast has a render function toast.
@jamesikubi6831
@jamesikubi6831 4 жыл бұрын
Thanks Erik, but guys always remember; " Vue recommends using templates to build your HTML in the vast majority of cases. There are situations however, where you really need the full programmatic power of JavaScript. That’s where you can use the render function, a closer-to-the-compiler alternative to templates". vuejs.org/v2/guide/render-function.html
@sergiocastro5060
@sergiocastro5060 3 жыл бұрын
This video was an excellent explication, thank you so much Erick !!!!
@ProgramWithErik
@ProgramWithErik 3 жыл бұрын
You are welcome
@sergiocastro5060
@sergiocastro5060 3 жыл бұрын
@@ProgramWithErik thanks, you have a new subscriptor
@AliAlmoullim
@AliAlmoullim 4 жыл бұрын
Btw, you can use JSX instead of the createElement function
@johnnydriesen7575
@johnnydriesen7575 4 жыл бұрын
IMHO ... I don't see the advantage (yet) Though, thanks for sharing your knowledge, @Erik !
@imranraja1322
@imranraja1322 4 жыл бұрын
Can't we add a single element with render function except for whole template for example: In a table I want to dynamically add and in it input with v-model with pure js it does not work?
@turabmehdi1632
@turabmehdi1632 4 жыл бұрын
Great overview, many thanks. Had a question, how does one use vuetify components, i.e., v-app-bar, v-navigation-drawer, etc. within render functions?
@sitiafiqahismail6533
@sitiafiqahismail6533 3 жыл бұрын
thank you so much this just helped me a lot!
@Lannnister
@Lannnister 4 жыл бұрын
Amazing tutorial, thanks!
@7x01
@7x01 Жыл бұрын
Render reminds me a of React structure.
@Kanexxable
@Kanexxable 4 жыл бұрын
Do render functions make Vue faster or reduce bundle size. They could be useful for making libraries
@victormarval4904
@victormarval4904 4 жыл бұрын
Awesome video, Erik. I've seen this approach being used a lot lately, but I couldn't really underestand it until now. Do you think render functions will be used a lot more in Vue 3?
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
They are still there, and have been updated. But it's really not something everyone will be using
@DmitryiTrushin
@DmitryiTrushin 4 жыл бұрын
what you think about SEO in this pages?
@MrMarcoAlvarado
@MrMarcoAlvarado 3 жыл бұрын
What's the benefit of these render functions? That you write a bit less code than doing it the "traditional" way?
@hexasix7010
@hexasix7010 Жыл бұрын
yo what is this theme I want it too
@eli007s
@eli007s 4 жыл бұрын
so many bloopers lol
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
Eli Orellana what bloopers??!?
@eli007s
@eli007s 4 жыл бұрын
@@ProgramWithErik at 11:30 you were like... ah freak, undo undo okay i'll cut it out here and start all over. sip sip. hehe
@0O0day
@0O0day 4 жыл бұрын
its complicated !
A Deep Dive Into Async Components In Vue! (Should You Use This?)
13:04
Program With Erik
Рет қаралды 21 М.
Introduction to Bootstrap With Vue - Full App
42:58
Program With Erik
Рет қаралды 99 М.
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 75 МЛН
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 12 МЛН
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 6 МЛН
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 93 МЛН
Vue.js Tips: Use Slots The Right Way // VUE.JS SLOTS TUTORIAL WITH VUE 3
11:59
Can You Use JSX In Vue.js? Let's Find Out!
8:14
Program With Erik
Рет қаралды 7 М.
React devs can use JSX in Vue
11:47
Kelvin Omereshone
Рет қаралды 2,6 М.
Vue: Routing For Dummies
25:05
Program With Erik
Рет қаралды 52 М.
Learn TypeScript With Vue.js 3 In 20 Minutes
22:56
Program With Erik
Рет қаралды 75 М.
Vue 3 Script Setup, The Future Of Vue? Tutorial And Setup
25:08
Program With Erik
Рет қаралды 59 М.
Let's add Vitest To This Vue App? Vue Vitest Tutorial!
16:28
Program With Erik
Рет қаралды 2,5 М.
How to render extremely large images in Vue with render areas
5:13
Vladimir Chopine [GeekatPlay]
Рет қаралды 1 М.
Learn Vuex In 10 Minutes (Vue.js State Management)
13:28
Program With Erik
Рет қаралды 148 М.
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 75 МЛН