Тёмный

This React Library Blew My Mind - React Flow Course in 30 minutes 

Usman Abdur Rehman
Подписаться 1,7 тыс.
Просмотров 20 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 111   
@usmanabdurehman97
@usmanabdurehman97 18 дней назад
I just published an Advanced React Flow Course 🚀. You can watch it here 🔥 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rk_WSjrmHp8.html
@JuicyBenji
@JuicyBenji 2 месяца назад
Very straight forward and to the point, well done. I'm always on edge when I see unedited code videos as more often than not the people doing those are yapping too much about nothing, are struggling to get it to work or is unsure what they are going to build exactly, which as a viewer can be a frustrating watch. However you did the exact opposite and for that I'm grateful. I don't often like videos, but I feel like I have to in this case. Well done.
@usmanabdurehman97
@usmanabdurehman97 2 месяца назад
Thanks man. You made my day 🤠
@nagasrinivasvinodkumarpand9309
@nagasrinivasvinodkumarpand9309 10 дней назад
thank you so much bro.. loved your style of teaching.. saved me a ton of time going through the documentation. thank you once again.. god bless you.
@nagasrinivasvinodkumarpand9309
@nagasrinivasvinodkumarpand9309 10 дней назад
just one suggestion by the way.. it would make the viewers more comfortable to have code on one side and the rendered output on other side on the same screen simultaneously..
@usmanabdurehman97
@usmanabdurehman97 10 дней назад
Thanks man. You made my day :D
@usmanabdurehman97
@usmanabdurehman97 10 дней назад
Nice Suggestion. I can either have just the code editor or browser open at one time so that everything appears big and people can view it on mobile which I think people do or have the browser and code editor side by side. Idk. Maybe I can do a poll to ask people what they prefer. Still thanks for the suggestion. I will consider this for future videos.
@usmanabdurehman97
@usmanabdurehman97 10 дней назад
Also I published an Advanced Course for React Flow a week ago so if you want to learn some advanced React Flow stuff, you can watch that.
@ThomazMartinez
@ThomazMartinez 5 месяцев назад
Dude this is amazing work so much better than what eve seen other YT done, thank you
@usmanabdurehman97
@usmanabdurehman97 5 месяцев назад
Thanks man. Your comments are what keep me going 😭
@hafizmuhammadbinasghar3108
@hafizmuhammadbinasghar3108 26 дней назад
You deserve many more subscribers bro, wish you luck and success! Classy explanation
@usmanabdurehman97
@usmanabdurehman97 26 дней назад
Thanks a lot man. You made my day with this comment 😭.
@thatolebethe8069
@thatolebethe8069 Месяц назад
thank you bro , needed this for my job saved me a ton of time
@usmanabdurehman97
@usmanabdurehman97 Месяц назад
Thanks for the comment man :)
@talhatxend
@talhatxend Месяц назад
very good work . thank you for sharing your knowledge bhai.
@usmanabdurehman97
@usmanabdurehman97 Месяц назад
Thanks for the kind words Talha. :)
@eduardoerlo5197
@eduardoerlo5197 Месяц назад
Great Video! You helped a lot!
@usmanabdurehman97
@usmanabdurehman97 Месяц назад
Thanks for the comment 🤠
@SajjadAhammed-c8d
@SajjadAhammed-c8d 4 месяца назад
This video has been really helpful
@usmanabdurehman97
@usmanabdurehman97 4 месяца назад
Thanks a lot :)
@HideBuz
@HideBuz 5 месяцев назад
Thank you for the tut! Just what I was looking for.
@usmanabdurehman97
@usmanabdurehman97 5 месяцев назад
Thanks :)
@rishalmuhammedup8815
@rishalmuhammedup8815 2 месяца назад
Freaking awesome maahn 🙂‍↕️🔥
@usmanabdurehman97
@usmanabdurehman97 2 месяца назад
Thanks man :)
@SachinDolta
@SachinDolta 22 дня назад
Good one mate
@usmanabdurehman97
@usmanabdurehman97 22 дня назад
Thanks for the comment :)
@ohskynyrdlynyrd
@ohskynyrdlynyrd Месяц назад
Thank you great video
@usmanabdurehman97
@usmanabdurehman97 Месяц назад
Thanks for the comment man. Appreciate it :)
@AkshatJaiswal-u3u
@AkshatJaiswal-u3u 2 месяца назад
Amazing video, really helped alot. Thanks for this !
@usmanabdurehman97
@usmanabdurehman97 2 месяца назад
Thanks a lot for this appreciation :)
@sonaljain6216
@sonaljain6216 4 месяца назад
This is insane. Very nice & simple explanation. Would be interested to know how much time did it take you to learn this in such an amazing manner.
@usmanabdurehman97
@usmanabdurehman97 4 месяца назад
Thanks :'D. Took around 2 weeks for learning library + project + script for the video etc.
@sonaljain6216
@sonaljain6216 4 месяца назад
@@usmanabdurehman97 That's amazing!! Thanks for the video.
@alexkorzh93
@alexkorzh93 Месяц назад
Well done! Thanks!
@usmanabdurehman97
@usmanabdurehman97 Месяц назад
Thanks for the comment man
@pratiktadvi9911
@pratiktadvi9911 2 месяца назад
nice bro you saved a lot of time
@usmanabdurehman97
@usmanabdurehman97 2 месяца назад
Thanks man for the comment :)
@thongpham
@thongpham 2 месяца назад
Thank you for sharing! ❤
@usmanabdurehman97
@usmanabdurehman97 2 месяца назад
Thanks for the comment Thong :)
@intensedolly
@intensedolly 4 месяца назад
Great video, show the drag and drop and how csn we save them, also i was bit confused with you were importing components, like how do we know what it is used for? . Great video by the way,thanks!
@usmanabdurehman97
@usmanabdurehman97 4 месяца назад
Thanks for the comment. You can just save the json state in the db or local storage depending on if you app has a backend or not and then load it whenever the app opens. Regarding the workflow, I had a dummy idea for a workflow where we would enter a payment(initialize) with some amount like 300$, then select any particular country(currency) and then select a particular payment provider by connecting different edges with each other. You can then use the state to add whatever logic you want.
@patmw
@patmw 5 месяцев назад
It would be great to see how you would go about serializing the graph and loading it again later. For example for saving and sharing workflows with your team mates
@usmanabdurehman97
@usmanabdurehman97 5 месяцев назад
I will sore sure include it in the next course. Thanks for the recommendation.
@pequod4557
@pequod4557 Месяц назад
@@usmanabdurehman97 just answer his question
@shahinabdullayev3340
@shahinabdullayev3340 2 месяца назад
Thanks for tutorial video. This is great. I have some visual issue of custom edge. Close icon doesn't appear on edgeline. What can couse this issue? If you have solution, please share with.
@usmanabdurehman97
@usmanabdurehman97 2 месяца назад
The cross icon is positioned based on some coordinates we get from react flow. For a curved edge, for some instances it can happen that the cross icon wont be present on the edge. You can make a normal edge instead of a curved one and probably that would not happen. The straight line custom edge example is present in the react flow docs.
@Dev_cent
@Dev_cent 22 дня назад
I have a question Is there a way to get a rule to control how the edges are connected? For instance I want users to create a flow that should start with "signup - select_country - some_other_nodes...... - payment" here I want to see a rule that the payment node should not be connected directly to the signup node for example since payment node should be the last
@Dev_cent
@Dev_cent 22 дня назад
Btw I know I can use it statement before the addEdge function but I just want to know if there's a better way
@usmanabdurehman97
@usmanabdurehman97 22 дня назад
You can use the isValidConnection method in the Reactflow component for that. In that method you get the current connection info and using that you can not make the connection if the source lets say is not your intended node(like signup).
@Dev_cent
@Dev_cent 22 дня назад
@@usmanabdurehman97 Thanks man I'll try that
@usernamenotfound1229
@usernamenotfound1229 5 месяцев назад
just awesome 👌👌👌👌 thank you very much
@usmanabdurehman97
@usmanabdurehman97 5 месяцев назад
Thanks man :)
@omnikingomniking6412
@omnikingomniking6412 4 часа назад
wow bro you are awesome
@usmanabdurehman97
@usmanabdurehman97 2 часа назад
Thanks man :D
@omnikingomniking6412
@omnikingomniking6412 2 часа назад
@@usmanabdurehman97 bro i have a doubt in react flow could you give your discord /twitter..? I think you can clear it. Yiu seem to be expert in it
@usmanabdurehman97
@usmanabdurehman97 2 часа назад
Not an expert but thanks. You can join the discord and share the issue there. Link is in the description
@omnikingomniking6412
@omnikingomniking6412 2 часа назад
@@usmanabdurehman97 🙏🙏
@DJRagemusic
@DJRagemusic 6 месяцев назад
Good job bro, That was very helpful
@usmanabdurehman97
@usmanabdurehman97 6 месяцев назад
Thanks man. Means a lot :)
@K.Huynh.
@K.Huynh. 4 месяца назад
thank you for sharing!
@usmanabdurehman97
@usmanabdurehman97 4 месяца назад
Thanks for leaving this comment :)
@Omesh7
@Omesh7 5 месяцев назад
This is great, can you show them the real world working demo, how things work in the background, when connected, what's the logic behind that
@usmanabdurehman97
@usmanabdurehman97 5 месяцев назад
This is a dummy workflow so there is not real logic behind it.
@Omesh7
@Omesh7 4 месяца назад
@@usmanabdurehman97 yes, i can see that, but can you make or refer videos about using this in real-projects for.eg, a simple payment app like your dummy example but actual working, like what how and what happens in background when we connect these nodes and then initiate a payment. and save the workflow retrieve them, then use it. liek that
@usmanabdurehman97
@usmanabdurehman97 4 месяца назад
I am planning a video regarding its usage in a real project based on its implementations I have seen. It would be out within 1,2 weeks.
@mazzukmachu
@mazzukmachu 3 месяца назад
Nice one
@usmanabdurehman97
@usmanabdurehman97 3 месяца назад
Thanks for the comment :)
@ewolz
@ewolz 2 месяца назад
How do i override zindex for a node that should always be above other nodes, even when those nodes are selected
@usmanabdurehman97
@usmanabdurehman97 2 месяца назад
Have you tried giving a very big zIndex to that particular node you want on top?
@DevProHub
@DevProHub 12 дней назад
Could you please create tutorial to use react flow with Electron js app?
@usmanabdurehman97
@usmanabdurehman97 12 дней назад
I dont think it would need something special to hook react flow with Electron. Have you tried doing it?
@dharmaverse_io
@dharmaverse_io 2 месяца назад
How do you access data passed between nodes?
@usmanabdurehman97
@usmanabdurehman97 2 месяца назад
You can use some global state management tool like Zustand to update/keep track of the data between nodes/edges etc. That is whats recommended by React Flow as well.
@tanishabaidya1774
@tanishabaidya1774 Месяц назад
Can anyone help me. Like can we use react flow for connecting the tables which is dynamic??
@usmanabdurehman97
@usmanabdurehman97 Месяц назад
Can you share an example of what you want to do? If you have a discord, you can join the discord server and share whatever you are planning on doing.
@seshuvuggina1912
@seshuvuggina1912 5 месяцев назад
How can positions be generated? Is it done manually or is there an automated process for generating them?
@usmanabdurehman97
@usmanabdurehman97 5 месяцев назад
For this particular example, I have a working area of 500*500. So, I am using Math.random() * 500 to generate x,y coordinates for the nodes I am adding so that they land inside this working area.
@adaezendupu9488
@adaezendupu9488 6 месяцев назад
Awesome!! Thanks for this. Is there a way to have arrow heads at the end of your edges pointing to a target?
@usmanabdurehman97
@usmanabdurehman97 6 месяцев назад
Glad you liked it :). Yes there is. Since you have the ability to add a custom handle, you can use css clip path to make whatever kind of shape you want for the handle. Also, you can use some image as background for the handle etc.
@ThomazMartinez
@ThomazMartinez 5 месяцев назад
But one thing i dont get how to pass data from Node 1 to Node 2? I dont see this done thru Edges, so when onConnect is done do i need to loop over Node 1 to get its props and then Loop over Node2 to pass there?
@usmanabdurehman97
@usmanabdurehman97 5 месяцев назад
You can use any way. You can do what you told where you in the onConnect function mutate the state for the node to pass custom data to it which can be the data of some node as well. You can also use some state management library like zustand and keep a global state tree where the key of the state is the id of the node and the value is the respective data. Then you can use that state in any custom node component. Do anything which makes more sense to you based on your needs.
@ThomazMartinez
@ThomazMartinez 5 месяцев назад
@@usmanabdurehman97 using zustand works greats its just the looping part over and over i dont really like i was hoping that this lib has some magic function that stores values nicely that they can be referenced by id easally without loop but i guess i can always build this myself
@usmanabdurehman97
@usmanabdurehman97 5 месяцев назад
yeah, looping is not great. Use Zustand then and keep a global object for node data
@mohd.tabishkhan4868
@mohd.tabishkhan4868 2 месяца назад
sir would love to have a video on Layouting in react flow and how to insert json data into it. Like my data have a key as steps and inside there are sub-objects in same . Imagine gettting answer from gemini api asking to give steps in json format to create any project.
@usmanabdurehman97
@usmanabdurehman97 2 месяца назад
Aoa Tabish. You can look at ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-05PBW_k2Nno.html for how you can do dynamic layout based on data. Also look at the way I create nodes and edges dynamically based on a schema. Maybe it is similar to your problem. Regards.
@Nomadnik_
@Nomadnik_ 4 месяца назад
Any free library works same ??? I have to make one for my react proj. Data is huge tho.
@usmanabdurehman97
@usmanabdurehman97 4 месяца назад
This is a free library.
@UsefulClips_
@UsefulClips_ 4 месяца назад
sir if we add 2+ handles then its not working please help me regarding that
@usmanabdurehman97
@usmanabdurehman97 4 месяца назад
It should work. In the payment country component, I have got two handles. One source and one destination. Check if you are getting any errors in the console. Also cross-check your implementation with mine
@UsefulClips_
@UsefulClips_ 4 месяца назад
@@usmanabdurehman97 yes sir i do that but the issue is when I add one target and two sources then target and one source is working and second source is not working can you please guide me regarding that or we can connect on google meet if possible
@phucluu1247
@phucluu1247 6 месяцев назад
Thank you for your job. Can you guide about create node for automation browsers?
@usmanabdurehman97
@usmanabdurehman97 6 месяцев назад
Thanks for the appreciation. Can you elaborate it a bit on what you mean? I didn't get it.
@phucluu1247
@phucluu1247 6 месяцев назад
@@usmanabdurehman97 i mean that create node about browser such as "click", "typetext", "openur", "newtab"...
@ralphwealth163
@ralphwealth163 6 месяцев назад
Please make more react flow tutorials
@usmanabdurehman97
@usmanabdurehman97 6 месяцев назад
For sure. This is an amazing library, and I would love to make more project-based tutorials using it. Be on the lookout for more in 1-2 months.
@navaneeth9103
@navaneeth9103 5 месяцев назад
This will chnage on each refresh how can we save this
@usmanabdurehman97
@usmanabdurehman97 5 месяцев назад
You will have to save the json object of the nodes/edges in a database/localStorage and load them on next page load or something depending on your application. I will include this in the next react flow course I make
@navaneeth9103
@navaneeth9103 5 месяцев назад
@@usmanabdurehman97 thanks , i was able to do that actually , it was for test of a job . could not complete at time 😓. dicovered ur channel though , waiting for react flow course👍👍
@usmanabdurehman97
@usmanabdurehman97 18 дней назад
@@navaneeth9103 Hi Naveen. I have published the Advanced React Flow Course. You can check it out here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rk_WSjrmHp8.html
@EduardoA775
@EduardoA775 Месяц назад
Altman with a mask, same voice
@usmanabdurehman97
@usmanabdurehman97 Месяц назад
xd. You mean Sam Altman?
@abdullahshams5772
@abdullahshams5772 6 месяцев назад
Really nice DEMO. Can you cover an example to save and load from JSON? Its a request
@usmanabdurehman97
@usmanabdurehman97 6 месяцев назад
cool. Will add this in the advanced course I will make. Thanks for the comment
@abdullahshams5772
@abdullahshams5772 5 месяцев назад
I am building a project demo, if you like we can collaborate, I can provide a real-world use case, that we are open to make open-source.
@skullhunter7342
@skullhunter7342 5 месяцев назад
Bro gave 2 hours of code in just 30 mints 🫡🗿
@usmanabdurehman97
@usmanabdurehman97 5 месяцев назад
Is this a compliment or a roast because I am not quite sure :3
@skullhunter7342
@skullhunter7342 5 месяцев назад
@@usmanabdurehman97 nah bro, I'm just appreciating how well you coded in just 30 mints but where you learnt this much because it's hard to go so much deep just by reading docs. 🫡
@usmanabdurehman97
@usmanabdurehman97 5 месяцев назад
oh cool. Thanks. I took inspiration about the project from the demos page they have. A lot of people have built very complex stuff using react-flow.
Далее
NAH UH
00:17
Просмотров 2,2 млн
Build a DB Schema Visualizer using React Flow
27:43
Просмотров 2,7 тыс.
Understand the react flow and structure
26:39
Просмотров 32 тыс.
Master React Flow in 1 Video - React Flow Advanced Course
3:10:21
Is Your API ACTUALLY Ready for User Traffic?
6:59
Просмотров 123 тыс.