Re:How Facebook's Instagram Acquisition Led to the Open Sour...
by polskibus on Saturday November 18, 2017 @03:47PM
(#15730591)
Winapi and windows forms in .net. message loop for UI programming is a very very old pattern. It was just reinvented for web and JS. I don't know if people that created react actually ever used Windows message loop.
[ Parent
| on HN ]
Re:How Facebook's Instagram Acquisition Led to the Open Sour...
by hesarenu on Sunday November 19, 2017 @10:42AM
(#15734310)
Not the loop. JSX way of declaring UI structure.
Re:How Facebook's Instagram Acquisition Led to the Open Sour...
by polskibus on Sunday November 19, 2017 @01:51PM
(#15735237)
Do you mean like XAML and WPF ? https://msdn.microsoft.com/pl-pl/library/ms752059(v=vs.110)....
Re:How Facebook's Instagram Acquisition Led to the Open Sour...
by mlsarecmg on Monday November 20, 2017 @02:57AM
(#15738474)
XAML is a template, it hooks into a controller via bindings. You could compare it to Angular maybe.
In React a view is a function of state:
const Header = ({ color, children }) => <h1 style={{ color }}>{children}</h1>
// Gets transpiled into:
const Header = ({ color, children }) => createElement('h1', { style: { color } }, children)
<Header color="red">hello</Header>
A large part of my career was about XAML/WPF/SL. I know it took me a year or more to really understand it deeply, being able to extend and do everything i wanted. I came to the same state 60 minutes into React. The pattern behind it does make many things easier. And that is an understatement. I believe that's also the main reason Microsoft itself is betting on React for cross platform and native apps as well as extension eco systems:https://github.com/Microsoft/react-native-windows