Answer the question
In order to leave comments, you need to log in
What is the benefit in React + MobX + TS + OOP app architecture?
I have been working as a frontender for a long time, I worked with AngularJS , now with React more, but the bottom line is that most of the projects I worked with (although many were rather big ones), no one was sophisticated with them and did according to a simple best practices scheme, as evangelists from the Internet advise. But it so happened that the last couple of projects in the team are the majority, the so-called FULL-STACK gurus - these are the ones that actually dotnetchiki and screw the layout position: absolute everywhere.
Question on the front (in particular React ):
The lead rewrote the basic components of React , added his own rules and basic functions, including render
,
now we write like this:
internalRender() {
this.addCssClass(className); // Этот классней приходит из пропсов
this.addCssClassIf('required', isRequired); // этот метод тоже вместо тернарного оператора, если у нас вдруг что-то required
return (
<Какой-то-компонент className={this.renderCssClasses()} />
)
}
Answer the question
In order to leave comments, you need to log in
What is the benefit in React + MobX + TS + OOP app architecture?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question