The evolution of a React application - 5 architecture styles you need to know

  Рет қаралды 1,850

I Code It

I Code It

Күн бұрын

Пікірлер: 10
@bonoliu8336
@bonoliu8336 5 ай бұрын
Watching this after one whole year😂this is still relevant and helpful 👍 nice diagram
@icodeit.juntao
@icodeit.juntao 5 ай бұрын
Thanks mate
@xyvadimxy
@xyvadimxy Жыл бұрын
really well explained, thanks!
@icodeit.juntao
@icodeit.juntao Жыл бұрын
Thanks @xyvadimxy, for your feedback!
@yurionthecode
@yurionthecode Жыл бұрын
Hi, thanks for the content. I need put all states in a hook in all cases or this is flexible? The situation: I have only one useEffect on the component.
@icodeit.juntao
@icodeit.juntao Жыл бұрын
Hi @yurimutti6599. Just like other principles or patterns in software, there isn't such a thing that can apply to all cases. Although it's a better option when you have stateful logic and extract them into a commonplace, you should examine your usage. If the useEffect or any built-in hook can do the job and you're confident there isn't any similar usage of the stateful logic, then leaving it just in JS is totally fine. Also please note that you can always go back and do the refacotring when the duplication emerges.
@wf6212
@wf6212 Жыл бұрын
great content, amazing!
@icodeit.juntao
@icodeit.juntao Жыл бұрын
Thanks Wei-Hang, appreciate it!
@rickvian
@rickvian Жыл бұрын
Hi Mr Juntao, thanks for sharing this knowlege, i am quite mindblown by this, i applied this in my project and it helps me a lot to separate business logic from the view layer! but, so far i try to figure out, we know in react we need to create new state, how do i take existing objects, and create new state from it ? coz spreading it into new state as usual, the object will lost its method
@icodeit.juntao
@icodeit.juntao Жыл бұрын
Hi @rickvian, thanks. Do you have a code example somewhere (like in a code sandbox) I can have a look, please? It seems you're facing a lifecycle issue with a model object? If that's the case, I would suggest trying to think about how you would do it in a backend application. By saying that, I mean the model should not be only a data container that holds some static fields, it should have behaviour and act as a real object that contains behaviour as well. In such case, the object can live inside a React context, for example, and can be referenced by other parts of the React application.
Clean Code vs. Performance Code: Which One Should You Choose?
7:24
The React Interview Questions You need to Know
21:29
CoderOne
Рет қаралды 56 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
React Clean Code - React and Design Pattern
57:09
I Code It
Рет қаралды 6 М.
Understand What MACH Architecture Is and Its Benefits
9:30
Going Headless with John
Рет қаралды 13 М.
Scaling Frontend App Development | Theo Reacts
37:13
Theo - t3․gg
Рет қаралды 34 М.
How to prepare your Frontend System Design Interview
13:21
I Code It
Рет қаралды 32 М.
Design patterns in React
14:37
Cosden Solutions
Рет қаралды 185 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 150 М.
10 React Antipatterns to Avoid - Code This, Not That!
8:55
Fireship
Рет қаралды 787 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 947 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН