But I don't get React.js.
javascript is retarded and react is retarded^2, you pretty much have to downgrade your IQ to understand them so don't worry about it
React is one way data binding.
That's it.
>>61189220
>I can't understand a simple concept
>The concept is retarded
Just delete your git repos and quit now.
>>61189270
>>61189288
Why can I make numerical software with WPF/C# for the oil and gas industry but get brain aneurysm when I try to learn React?
>>61189377
It's the same shit basically. If you can't see how both are the same (regarding one way data binding only, since wpf has two ways and can choose direction), then just go back to jQuery.
>>61189220
If you dealt with jQuery long enough, you will understand how daunting it is to render HTML components depending on its state.
>>61189220
Normally, you listen to some events and directly change the DOM elements depending on your events.
With that, you have to think about the all possible changes in the UI every time you change your state.
With React, you compose the DOM elements as components which take some state and return the UI. Every time the depending state changes, the components are automatically re-rendered. Therefore, you only need to define how the UI should look given the state, and dont have to worry about UI changes yourself.
>>61189449
The difference is that WPF uses observers, with react it uses a diff algorithm.
Also in WPF the rendering is implied, in react you have to implement the render method.
And of course, the templates are separate files in WPF while they are inlined in react.
>>61189792
Since you implement the render method in react, then you can return completely different templates with conditions in code. WPF uses a single xml template as entry point so you have to do the conditions in XML to render different subtemplates. This makes react much easier in my opinion since the XML in wpf can turn very complex fast.
>>61189220
either you are retarded or you don't have a basic knowledge of how client-side applications work which is a prerequisite for understanding react
>>61189220
Learn Redux (or elm), it helps to conceptualize what you are supposed to do with React.
React is very very simple, you declare an "state object" (or many) and you create visual components that "react" when such states change. That's it.
You still do the MVC architecture, React it's just the V part, you have to provide the Model and controllers yourself (with redux for example)