From 135762c09737619a1660069f8023120f84bc3562 Mon Sep 17 00:00:00 2001 From: Chris Diana Date: Sat, 1 Jun 2019 11:35:55 -0600 Subject: [PATCH] [JS] Code organization typo fix (#192) --- questions/javascript-questions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questions/javascript-questions.md b/questions/javascript-questions.md index 06ff75b99..ae74f3aef 100644 --- a/questions/javascript-questions.md +++ b/questions/javascript-questions.md @@ -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.