3 ms·
>It's like React/Vue core, but there are no hooks, effects, props, or other unusual abstractions on your way I have almost a decade of React experience and to
by gloosx 3y ago
>It's like React/Vue core, but there are no hooks, effects, props, or other unusual abstractions on your way
I have almost a decade of React experience and to my ear this sounds very weird (starting from React/Vue put together casually). For me – React is really 7 hooks that provide usual abstractions and nothing more.
EDIT:
I just looked through their listbox "code volume" comparison and it seems like a bad joke.
Obviously meticulously type-scripting anything and exaggerating the code to the absolute will make it look BIGGER when compared to plain js file crafted to make it as thin as possible. I don't think it can stand a fair comparison though.
- deleted 3y ago[deleted]
- gloosx 3y agoFor the author @tipiirai here. A fair and functional challenge: what will be Nue solution for making this beautiful triangle? https://codesandbox.io/s/pedantic-mclaren-nqpjl5?file=/src/App.js https://codesandbox.io/s/pedantic-mclaren-nqpjl5?file=/src/A... As you can see it is 20 lines of code and zero hooks for React. It also takes a finite time to compute a limit > 2^10 without code sandbox complaining. I wonder how much time Nue needs to render for limit=2^10? 2^100? Then we can compare.
- tipiirai 3y agoChallenge accepted! Likely 5x less code and 2x faster. I'll keep you posted.
- gloosx 3y agoHa, took me two minutes to make that code sandbox. Can you tell me at least if it is possible in Nue to create something functional like this and how? Or is it just a bunch of macro with some weird imperatives inside usual XML syntax? I really want to see 4 lines of code doing the same thing 2x faster :D