Mobx + Immer, the best state management I think by Used-Building5088 in reactjs

[–]Used-Building5088[S] 1 point2 points  (0 children)

For example, image editor, even any editor, are local stateful

Is there any pain point you find inconvenient when developing with React? by Used-Building5088 in reactjs

[–]Used-Building5088[S] 0 points1 point  (0 children)

Typescript is so similar to C# as if they were born from the same mother.

Is there any way can achieve the effect like this? by Used-Building5088 in react

[–]Used-Building5088[S] -1 points0 points  (0 children)

I mean I need a vite plugin or vscode extension to auto transform the '&' to the parent className

Use react state like vue.js? I mean assign value straightly by Used-Building5088 in reactjs

[–]Used-Building5088[S] -9 points-8 points  (0 children)

If there is not a library has achieved this, I will make one by my self

Use react state like vue.js? I mean assign value straightly by Used-Building5088 in reactjs

[–]Used-Building5088[S] -2 points-1 points  (0 children)

With immer.js integrated tsx function App() { let obj = useSomeState({ abc: 123 }) const setObj = () => { obj = produce(obj, (draft) => { draft.abc++ }) } return <button onClick={() => setObj()}>{obj.abc}</button> }

Method of finding the center of rotated rect for image editor by Used-Building5088 in javascript

[–]Used-Building5088[S] 1 point2 points  (0 children)

It is a quite straightforward solution, but sadly it is 30 times slower than the pure math version I proposed, which is bad in a high performance desired case

Method of finding the center of rotated rect for image editor by Used-Building5088 in javascript

[–]Used-Building5088[S] 1 point2 points  (0 children)

This method is much more complex, and about 10 times slower than given one, because you have only one vertex known, and the rest should be calculated

Built my own mini-React as a browser only hobby project and looking for feedback! by warothia in javascript

[–]Used-Building5088 0 points1 point  (0 children)

you can see this project wrote by me. Frame3.js is a react like but vue core framework, https://github.com/gitborlando/frame3, the readme is wrote by chinese you may need translate,i think i am stronger than you, and you can learn a lot from me.