• Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

Is React beginner-friendly?

Lomanu4 Оффлайн

Lomanu4

Команда форума
Администратор
Регистрация
1 Мар 2015
Сообщения
1,481
Баллы
155
I originally published this article on my blog here :

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Notice it's opinionated, you are perfectly allowed to disagree :)

Article below :

No.

It's not.

React looks like very appealing for beginners, because each component looks like a brick you can easily (almost physically) manipulate with a very fine granularity.

The easy part


And each component sounds very intuitive.

Let's take a basic example, taken from one of my previous project :


import { NextSeo } from 'next-seo';

import Navigation from '../components/navigation';
import ScrollToTop from '../components/ScrollToTop';

const About = () => (
<div>
<NextSeo title="About | Some title | Some subtitle" description="lorem ipsum" />

<ScrollToTop />
<Navigation />
</div>
);

How good is that?

Even with little or no dev experience, you can guess that the about page uses a ScrollToTop, and a Navigation component.

Oh, and SEO is also handled by a component given by the underlying framework (yes, it's NextJS).

So good!

So Easy!

The trap


No let's face it, React is full of akward traps.

Here is the official docs about "

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

".

You can achieve all problems in React in multiple ways, and you have no clue, unless you spend countless hours on the docs, to know which one is "the right way" or not.

Another possibility is to spend your night to read how React replaced the whole underlying DOM Event system, then try to understand how hooks tries to play with this replacement, and then you start to guess what to do and what to avoid with React.

No full integration


The last huge problem with React is the complete lack of deep integration.

Oh, I know, there are some.

ShipFast (commercial), NextJS (free, but hugely bound to private PaaS company), Blitz (build on top of NextJS, with same inconvenients), React-Router (not used by all the community), Redwood (same)...

So there are no "React way" to build something from top to bottom.

Good luck for long-term maintenance.

Still possible of course, but...

definetely not for beginners.

Summary


React is a good framework, in term of popularity.

Is it for beginners?

No.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх Снизу