Translating Dust templates to JSX center associated with the ten years (affected by the javaScript fram that is endless

Translating Dust templates to JSX center associated with the ten years (affected by the javaScript fram that is endless

Hello Habr! i am MiloЕЎ from Badoo, and also this is my very first Habr post, initially posted inside our technology web log. Hope you enjoy it, and please share and remark when you yourself have any concerns

So… React, amirite.

It starred in the center of the ten years (suffering from the endless JavaScript framework wars), embraced the DOM, surprised every person by blending HTML with JavaScript and changed the internet development landscape beyond recognition.

Dozens of accomplishments, without also being a framework.

Think it’s great or hate it, React does one task very well, and that’s HTML templating. Along with a healthier ecosystem, it is perhaps perhaps not difficult to realise why it became probably the most popular and influential JavaScript libraries, or even the most famous certainly one of all.

yeah, he said he *hates* javascript frameworks…can you think that?

Right right right right Here within the mobile phone Web group, we don’t follow any strict JS frameworks – or at the very least, any popular people – and now we work with a mix of legacy and modern technologies. Although that actually works well we wanted to alleviate this by reducing the number of В«manualВ» updates, increasing our code reuse and worrying less about memory leaks for us, manipulating DOM is usually hard, and.

After some research, respond had been considered the best option therefore we chose to opt for it.

We joined up with Badoo in the exact middle of this procedure. Having bootstrapped and labored on React projects previously, I happened to be conscious of its advantages and disadvantages in training, but migrating an adult application with billions of users is an entirely various challenge|challenge that is completely different.

Respond mixes HTML with JavaScript in a structure called JSX. If you will, for React calls, very similar-looking to HTML although it looks like a template language, JSX is actually just a syntax, or syntactic sugar.

Read More

Search

+