Erik Rasmussen | Abstracting Form State with Redux Form

  Рет қаралды 36,935

JS Channel

JS Channel

Күн бұрын

Пікірлер: 61
@fredericgauld5319
@fredericgauld5319 7 жыл бұрын
WOW! Thanks Erik. This is one of the most well worked react-redux projects I've come across. I'll be using it for my startup. SuperThanks from Montreal, Québec, Canada!
@Mike.e
@Mike.e 8 жыл бұрын
Great talk. Thank you! I also enjoyed your quick but great overview of React/Redux.
@sabhab1
@sabhab1 8 жыл бұрын
Great talk covering the important use case w.r.t Forms , Thanks a lot Erik. . 49:57 is Awesome . .
@thecondor5488
@thecondor5488 8 жыл бұрын
Yes it is!! So maybe I missed something, but what tool is showing the playback widget?
@erikras
@erikras 8 жыл бұрын
Redux DevTools Chrome extension.
@Robsonbcarvalho
@Robsonbcarvalho 8 жыл бұрын
I was in doubt what form lib to choose, but your great presentation gave me the answer, Redux Form is the way to follow. You have done an excellent job @Erik Rasmussen.
@mjwrather
@mjwrather 7 жыл бұрын
I'm only 30 seconds in, but that intro was so epic I need to take a break and maybe even a nap
@halvedbagel5827
@halvedbagel5827 8 жыл бұрын
Great talk. Watching it for the second time
@moveaxebx
@moveaxebx 8 жыл бұрын
Very nice job Erik. Much better job than the API Redux-Form had had before. Now make sure you guys maintain that good since I'm pushing this into production in couple of months. :)
@fidabhittani
@fidabhittani 7 жыл бұрын
Very Impressed. Very nice abstraction of the form state.
@pedromagnus
@pedromagnus 8 жыл бұрын
Description should have github link. Could you add it? Thanks.
@HekaFOF
@HekaFOF 8 жыл бұрын
This redux form version 6 looks way better than the old ones :)
@mobiledevtube
@mobiledevtube 7 жыл бұрын
Muchas gracias Erik, we are going to try out v6 for sure. Was on our way of coding our own setup, this saves us ton of hours :) We have a huge forms stack to rewrite ... so really hope this does the magic.
@kuchumovn
@kuchumovn 8 жыл бұрын
Now I know how erikras looks
@DevanHuapaya
@DevanHuapaya 8 жыл бұрын
I thought the same thing
@rdxtn
@rdxtn 7 жыл бұрын
he is so hot.
@pashabiceps95
@pashabiceps95 6 жыл бұрын
lol
@andreivedovato
@andreivedovato 7 жыл бұрын
this is absolutely awesome
@earth-to-brian
@earth-to-brian 7 жыл бұрын
@17:45 If I remember correctly, from reading the Redux docs, reducers *should* not mutate state since they should remain pure functions. But i'm not exactly sure what "mutated functionally" means.
@wellyngtonamaral4097
@wellyngtonamaral4097 7 жыл бұрын
Reducers should not change the redux state. Mutate means generate a new object with the new state. You're not changing the state. You are just creating a new one. Pure functions are functions that receives an argument and returns a value with no side effect (no async calls or any other thirty part libraries call that could compromise the purity if thats a real word in english xD). So reducer still valid as a pure function.
@thomasfuchsberger3912
@thomasfuchsberger3912 8 жыл бұрын
Thanx Eric for this awesome thing!!!
@sundarammms327
@sundarammms327 7 жыл бұрын
I liked Redux-Form and the way you present it too.. :).
@wellyngtonamaral4097
@wellyngtonamaral4097 7 жыл бұрын
Congratulations and thanks for the excellent job with this library. However you look very different compared to your profile picture. Didn't thought was you talking on the video in the first time.
@__greg__
@__greg__ 8 жыл бұрын
great talk!
@andresgutgon
@andresgutgon 8 жыл бұрын
Awesome talk! thanks
@itepsilon
@itepsilon 8 жыл бұрын
Great Talk !
@jeromelanteri321
@jeromelanteri321 4 жыл бұрын
Does the Redux logic source code is as the speach construction style ? "... AND..... AND.... AND.....AND.....AND......" (it is a joke, but consider there is other link-words than only "and", the same in source code).
@lokeshagrawal8240
@lokeshagrawal8240 7 жыл бұрын
Awesome thing out
@FrancoRissoDev
@FrancoRissoDev 8 жыл бұрын
Amazing talk! :D
@kevgi
@kevgi 8 жыл бұрын
just Awesome!!!
@RonaldFelix
@RonaldFelix 7 жыл бұрын
40:50 FieldArray example
@TheShneek
@TheShneek 7 жыл бұрын
This is great!
@JoseAyerdis
@JoseAyerdis 8 жыл бұрын
What is the name of that devtools that he uses for seeing the diff/state ?
@CharlesRochaDantas
@CharlesRochaDantas 7 жыл бұрын
Redux DevTools Chrome extension.
@ChrisGeirman
@ChrisGeirman 7 жыл бұрын
I really dislike it when the contrived example someone uses to justify their solution is the worst possible case. If you're solving an actual problem, you don't need to make things seem worse than they really are. At 12:07m, he describes the "Simplest React Form" with an event handler for every single form field (handleUsernameChange, handlePasswordChange, etc), each with it's own setState call. This is not realistic and unnecessarily complex. Each of those functions could be consolidated into a single handleChange function like so (I hope KZbin will format this decent enough)... ``` handleChange = (event) => { const { name, value } = event.target; this.setState({ values: { ...this.state.values, [name]: value } }); } ```
@juanjegarcia3957
@juanjegarcia3957 7 жыл бұрын
that's actually the right way to handle forms with setState.
@ChrisGeirman
@ChrisGeirman 7 жыл бұрын
Juan Je García setting up a separate handler for each field is best practice in your opinion?
@juanjegarcia3957
@juanjegarcia3957 7 жыл бұрын
He says why in the video. The React documentation says the same: facebook.github.io/react/docs/forms.html#controlled-components
@ChrisGeirman
@ChrisGeirman 7 жыл бұрын
He describes what a controlled component is, which requires an onChange handler. The react documentation re enforces this, sure. But he says "This is the simplest possible react form I could come up with" with username and password, then he creates one handler for each field (handleUsernameChange and handlePasswordChange), which certainly isn't the simplest it could be. it's possible to have just one change handler (handleChange) as shown in the react docs. The react case is too simple to show this case unfortunately.
@juanjegarcia3957
@juanjegarcia3957 7 жыл бұрын
Chris Geirman That produces less lines of code, but it isn't necessarily simpler and/or cleaner.
@MarcinAntczak1
@MarcinAntczak1 8 жыл бұрын
Didn't you have money to purchase intro track from Audiojungle ???
@komaldeepsinghchahal1286
@komaldeepsinghchahal1286 7 жыл бұрын
cool stuff man..
@SankarP
@SankarP 8 жыл бұрын
I liked the first part of your talk. The demo was a little too fast to follow for my liking.
@ViktorAks
@ViktorAks 8 жыл бұрын
Use pause in your video player :-)
@SankarP
@SankarP 8 жыл бұрын
It is not about the fps of the video but the extent of coverage. Too much of content was crammed in too short a time imho.
@erikras
@erikras 8 жыл бұрын
Thanks for the feedback!
@publishyours
@publishyours 8 жыл бұрын
To me it was great. A single hour and I feel like I can implement a solid form with custom fields, validation and all on a React/Redux project I'm currently working on. I couldn't have asked for more! =]
@jhwheeler7
@jhwheeler7 7 жыл бұрын
Yeah I'm with Rafael on this one. Definitely better to have more info than too little.
@martindong5957
@martindong5957 8 жыл бұрын
Do not use this , it will lag when you type faster due to unecessary tries to rerender everything in form
@danschuman77
@danschuman77 8 жыл бұрын
I always imagined Erik had a Spanish accent! (Hey Erik.. it's quicksnap =P )
@erikras
@erikras 8 жыл бұрын
Ha! I have a US accent in Spanish. :-)
@antonio-vangi
@antonio-vangi 7 жыл бұрын
Hallo, You could explain how I can integrate the project into a Django application? Thanks
@fuu812
@fuu812 6 жыл бұрын
Awesome library, awesome presentation. Here the links folks: - github.com/erikras/redux-form - codesandbox.io/s/mzrjw05yp
Netflix JavaScript Talks - RxJS + Redux + React = Amazing!
37:14
Netflix Engineering
Рет қаралды 396 М.
NestJs Course for Beginners - Create a REST API
3:42:09
freeCodeCamp.org
Рет қаралды 1,7 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Ben Lesh - Async Redux Actions With RxJS
35:11
ReactRally
Рет қаралды 27 М.
Learn flexbox the easy way
34:04
Kevin Powell
Рет қаралды 742 М.
Dan Abramov - The Redux Journey at react-europe 2016
26:57
ReactEurope
Рет қаралды 76 М.
Redux - Complete Tutorial (with Redux Toolkit)
37:01
Cosden Solutions
Рет қаралды 275 М.
React Router v4 with Michael Jackson and Ryan Florence - Modern Web
44:54
Hacker Way: Rethinking Web App Development at Facebook
44:36
Meta Developers
Рет қаралды 892 М.
[React/Redux] Logicless Components with Reselect
18:09
Stephen Grider
Рет қаралды 43 М.
React JS Crash Course
1:00:39
Traversy Media
Рет қаралды 842 М.
Vue.js Course for Beginners [2021 Tutorial]
3:39:56
freeCodeCamp.org
Рет қаралды 1,3 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН