Formik - Building React Forms easier

  Рет қаралды 9,923

Monsterlessons Academy

Monsterlessons Academy

Күн бұрын

Learn what is formik and how it helps us to build React forms faster. In every project we need forms and they are always similar with state, validations, submitting. It doesn't make any sense to implement them on your own but it is faster and more convenient to use a library.
TIMESTAMPS
0:00 Building React forms
1:32 Basic formik example
4:41 Formik validation
7:15 Formik validation schema
8:55 Formik components
► CHECK MY COURSES - monsterlessons-academy.com/co...
FOLLOW ME
► TWITTER - / monster_lessons
REFERENCES
► Source code - github.com/monsterlessonsacad...
RECOMMENDED VIDEOS
► My editor setup for web development - • Best Text Editor for W...
► Angular Tutorial for Beginners - • Angular Tutorial for B...
► Vue JS Crash Course - • Vue JS Crash Course fo...
► React Hooks Full Course - • React Hooks Tutorial f...
► Typescript Course for Beginners - • Typescript Crash Cours...
► Build a Todo App with Angular - • Build a Todo App With ...
► Creating custom select library - • Custom Javascript Drop...
► HTML Price comparison - • Practice CSS and HTML ...
► How to build Quiz with React hooks - • How to Build a Quiz Wi...
MY COURSES
► NestJS course - • Nest JS Project From S...
► Docker + Docker compose course - • Docker Compose Tutoria...
► Angular + NgRx course - • Angular Course 2021 - ...
► Vue + Vuex course - • Vue Course With Projec...
► React hooks course - • React Hooks tutorial b...

Пікірлер: 34
@predator00071
@predator00071 10 ай бұрын
Bro, His way of teaching is very didactic. And your video is very short, making it easy to follow. You separated the basics in one video, and more features in others, making it really cool to watch. Thank you!!
@MonsterlessonsAcademy
@MonsterlessonsAcademy 10 ай бұрын
Glad it was helpful!
@truechannel2k24
@truechannel2k24 Жыл бұрын
Thank you so much for making stuff in soft a lot easier to understand.
@ibrahimkhurshid4339
@ibrahimkhurshid4339 Жыл бұрын
So well explained.
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Thank you!
@megamind770
@megamind770 8 ай бұрын
You're a life saver!
@MonsterlessonsAcademy
@MonsterlessonsAcademy 8 ай бұрын
Thank you!
@PraveenKumar-ft2kr
@PraveenKumar-ft2kr 9 ай бұрын
Excellent Video . Thank you :)
@MonsterlessonsAcademy
@MonsterlessonsAcademy 9 ай бұрын
You are welcome!
@user-jj3ld6kk2u
@user-jj3ld6kk2u 10 ай бұрын
Very helpful... thank you
@MonsterlessonsAcademy
@MonsterlessonsAcademy 10 ай бұрын
Glad it was helpful!
@mrpunch_777_
@mrpunch_777_ Жыл бұрын
Good explanation and straight to the point, content was really helpful . By the way, my company is still using formik.
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
As a lot of other companies
@zaytungbonn184
@zaytungbonn184 10 ай бұрын
it was really really good. thanks a lot
@MonsterlessonsAcademy
@MonsterlessonsAcademy 10 ай бұрын
Most welcome 😊
@zoki5388
@zoki5388 Жыл бұрын
You are creating good content. Could you make video about react tables?
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Thank you for the idea. I will add it to the list
@mazingamal3580
@mazingamal3580 8 ай бұрын
really thanks u bro , u r amazing .. i think it's better than react hook form and very easy
@MonsterlessonsAcademy
@MonsterlessonsAcademy 8 ай бұрын
Most welcome 😊
@waleedsharif618
@waleedsharif618 Жыл бұрын
Could you make video about react testing using react testing library + jest ?
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
I will add it to the list of ideas for future videos.
@mateusgomes1086
@mateusgomes1086 Жыл бұрын
Formik is no longer supported since June 2021. Just use react-hook-form instead.
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
You are totally right. But there are still lots of companies that use it in production and it is quite stable. And we get new libs that do the same thing too often for my taste :)
@ThiagoVieira91
@ThiagoVieira91 10 ай бұрын
Wow really!? You just made my day. Formik has the same base concepts of Redux-Form, which I'll hate until my death bed. Gonna get this lib out of our project today immediately.
@gubatenkov
@gubatenkov Жыл бұрын
dont use formik on production. You will get +100500 rerenders on each onChange
@grenadier4702
@grenadier4702 Жыл бұрын
The thing is not in rerenders but how it affects optimization. Many websites use Formik, so I guess everything's okay with that? :)
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Formik does no magic. If you write plain form handling you will also get rerender every time. Which is totally fine because it allows you to show validation/etc. If you have other cases you might write it differently. I don't really see a problem.
@gubatenkov
@gubatenkov Жыл бұрын
​@@grenadier4702 I know a lot of teams that have and are now rewriting all their site forms from Formik to Hook-form. Any idea why they did this?
@gubatenkov
@gubatenkov Жыл бұрын
@@MonsterlessonsAcademy no problem until you have to rewrite the code
@grenadier4702
@grenadier4702 Жыл бұрын
@@gubatenkov Convenience or bad architecture overall, not the problem of Formik
@frozen_tortus
@frozen_tortus 2 ай бұрын
"Best posible way", difficult to take you seriously with statements like that backed by 0 evidence. I was hopping you where going to compare it with some other similar form management solutions, but I was left disappointed. If I where you I would restrain myself from polarizing statements like that esspecially if you don't back them up.
@shashankpandey8346
@shashankpandey8346 3 ай бұрын
I really am confused. {formik.errors.email && formik.touched.email && formik.errors.email} In this line, I need to write formik.errors.email twice? It seemed to work touched & error, but not other way around. And is there any hidden catch in touched & errors too?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 ай бұрын
You check that you have an error for email and that the field is touched - then you render email error {errors.email && touched.email && {errors.email}}
Formik (React Forms) Crash Course
28:27
Laith Academy
Рет қаралды 61 М.
Mobx React - State Management Alternative to Redux
14:26
Monsterlessons Academy
Рет қаралды 8 М.
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 62 МЛН
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
Gym belt !! 😂😂  @kauermtt
00:10
Tibo InShape
Рет қаралды 16 МЛН
Happy 4th of July 😂
00:12
Alyssa's Ways
Рет қаралды 70 МЛН
Build React Custom Pagination - Without Any Libraries
12:24
Monsterlessons Academy
Рет қаралды 11 М.
Reusable Create & Edit Form in React (React Hook Form, Zod)
16:46
Cosden Solutions
Рет қаралды 24 М.
Practical monorepo with Nx
1:27:01
Ciklum official
Рет қаралды 8 М.
Design patterns in React
14:37
Cosden Solutions
Рет қаралды 152 М.
React Select Example | React Dropdown Menu - Fully Customizable
15:45
Monsterlessons Academy
Рет қаралды 80 М.
Junior vs Senior React Folder Structure - How To Organize React Projects
16:16
React & Material UI #28: MUI Forms + Formik
25:40
Anthony Sistilli
Рет қаралды 33 М.
This React UI Library is GAME CHANGER!
18:13
developedbyed
Рет қаралды 520 М.
React charts using Recharts and React ChartJS 2
14:49
Monsterlessons Academy
Рет қаралды 22 М.
React Query Is (Still) Essential - My Favorite React Library
11:04
Theo - t3․gg
Рет қаралды 146 М.
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 62 МЛН