[JS] Code organization typo fix (#192)
This commit is contained in:
parent
9e40dca67a
commit
135762c097
|
|
@ -280,7 +280,7 @@ console.log(double); // [2, 4, 6]
|
|||
|
||||
### How do you organize your code? (module pattern, classical inheritance?)
|
||||
|
||||
In the past, I used Backbone for my models which encourages a more OOP approach, creating Backbone models and attaching methods to them.
|
||||
In the past, I've used Backbone for my models which encourages a more OOP approach, creating Backbone models and attaching methods to them.
|
||||
|
||||
The module pattern is still great, but these days, I use React/Redux which utilize a single-directional data flow based on Flux architecture. I would represent my app's models using plain objects and write utility pure functions to manipulate these objects. State is manipulated using actions and reducers like in any other Redux application.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue