@cosdensolutions: What would you do? #react #reactjs #reactjsdeveloper #programming #progammer #frontend #devtok #coding #code #codetok

Cosden Solutions
Cosden Solutions
Open In TikTok:
Region: RO
Tuesday 27 June 2023 12:05:25 GMT
6735
322
16
2

Music

Download

Comments

name.of.type.undefined
Steph :
Wrap the App in a UserProvider that has the user state/reducer, init the user state when user logs in, get the user data with UserContext anywhere
2023-06-27 12:15:08
5
derinifemi
Nifemi :
It depends on different cases. But it all boils down to letting components handle their operations if there is only one use case for that component.
2023-06-27 12:14:39
2
liben_04
liben :
the first one containet presentation pattern, the second one is doing a lot of work which is rendering UI, datafetching etc nakes testing hard
2023-06-28 18:05:36
2
matej.kaska
matej.kaska :
redux
2023-06-27 12:14:59
1
kamotekid02
Kamote Kid :
I prefer the latter
2023-06-27 12:27:46
1
mkonkolj
mkonkolj :
i like it when componets are split into dumb render components and logic containers
2023-06-27 12:30:00
1
sync0022
sync00022 :
redux
2023-06-27 12:39:52
1
v.333039
A :
If the userData is small and retrieved from one server, create context and pass it down the tree.
2023-06-27 19:12:46
1
To see more videos from user @cosdensolutions, please go to the Tikwm homepage.

Other Videos


About