Answer the question
In order to leave comments, you need to log in
React, redux, middleware which set of tools and libraries is better to use?
Good day, Lord front-ends)
Faced the task of making a rather complex application on React. I have been reading manuals for a couple of weeks now, but they offer rather different solutions and a bunch of libraries (I get the impression that now everyone writes their own libraries, for example, I saw a couple of examples using different libraries for ajax requests, and this is not counting jqwerry and middleware) + confuses confusing, what they write in different "es2015" syntax with different libraries (which at first glance solve the same tasks) .
I got a little tired of googling, when I read the documentation or lessons, basic questions are omitted there (I think they seem obvious and not worthy of attention to experienced people) or the “do as I do” manual, - here it is, - here it’s like this in production. But I can't catch the cause-and-effect relationship, for example, why did they include the library for the ajax request. More precisely, I'm interested in the chain of reasoning in order to have more freedom to maneuver))
Actually questions:
1. Performance (now I have assembled the assembly of gulp, browserify, babelify, babel + redux and react libraries) The
compiled file has already exceeded 1Mb, although I implemented only the authorization form)) . I read that optimization compresses about 200 Kb.
I met mentions of other webpack collectors, babels, etc.
Are they fundamentally different?
(I have been working with gulp for a long time, there is a good build for layout, I did not see any advantages in other compilers)
Do they exist?
According to the API with which I need to work, the application must be on several pages. Will the state store (which is redux) remember the data when navigating through the pages (assuming I import it for the components I need) or does it need to be written to localstorage?
2. Styles. It seems like it is possible to write styles directly in jsx, but I don’t really like this option, because I’m used to using scss, and I haven’t seen any mentions of the ability to compile preprocessors from jsx, and the examples I saw seem inconvenient
. How do you do it? if directly in jsx, then please give reasons.
3. Please advise on the assembly and set of libraries for the tasks that I have to solve:
(now I settled on a bunch of gulp react redux middleware, I plan to put the styles in a separate file in the old fashioned way)
1) authorization and session tracking (if more than 10 minutes is inactive, then the session is over)
2) interaction with the google API (building a route for transport, creating control points on the map for it)
3) Building graphs
4) Working with svg graphics
5) Working with animation, I plan to solve part of it using CSS (I used to always solve it with a bunch of jq and classes). Somewhere I saw react has its own set of functions for animation and I suspect that libraries also need to be included there.
ps Today I came across a manual for using webpack and gulp at the same time on the same project
. Is such a symbiosis (webpack vs gulp) justified?
Thanks for the help
Answer the question
In order to leave comments, you need to log in
using different libraries for ajax request and that's not counting jqwerry and middleware
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question