I'm finally able to save bookmarks (correctly) from the actual frontend of my app!
Whooohooo!
One small step for man...a giant leap for my self-confidence.
I'm aware that in ReactJS v19 they got rid of forwardRef, thankfully, and we can just pass the ref as a prop.
Still, after-thought on top of after-thought to abstract complexity they created in the first place in 15 years of software development.
That's how I feel about #ReactJS
So I made a diagram to showcase how to implement a Modal component that holds a dialog, which expose the dialog's methods "showModal()" and "close()", forwards them to the main App component, that passes those to a button as props.
The modal component also needs a portal that makes sure its own html will end up in the body outside the main app, and therefore above everything on the screen.
Just to answer the question of why do you need all those hooks for a dialog modal in
#ReactJS.
So basically there's people working on the HTML standard that are very thoughtful and add a great quality of life and accessibility new feature like the <dialog> element and then there's people that to use it properly inside a front end framework have to write the most convoluted and unfriendly code ever...
in a nutshell...
Do you need another example of how #ReactJs complicates #webdev for its own sake?
I spent the day implementing a modal with a dialog element inside that works correctly (and still I had to use CSS to center it for god knows what reason at this point).
I literally need to draw a diagram to explain all the flow, it's horrendous!
It involves useRef, forwardRef, imperativeHandle, createPortal just on the Modal component. And a bunch of stuff passed around other components...
For fuck sake...
Dan Abramov: React for Two Computers
https://overreacted.io/react-for-two-computers/
Discussions: https://discu.eu/q/https://overreacted.io/react-for-two-computers/
Tanstack Start vs NextJS - Server Functions Battle
https://www.youtube.com/watch?v=Iun1DE_oHG0
Discussions: https://discu.eu/q/https://www.youtube.com/watch?v=Iun1DE_oHG0
Well overdue update on the re-working of my bookmarking app:
https://www.mauromotion.com/posts/2025-04-07-004-delish-css-layout-backend-refactoring/
How I Reduced My React Bundle Size by 30% (With Real Examples)
https://www.frontendjoy.com/p/how-i-reduced-my-react-bundle-size-by-30-with-real-examples
Discussions: https://discu.eu/q/https://www.frontendjoy.com/p/how-i-reduced-my-react-bundle-size-by-30-with-real-examples
#CaseStudy: #Airbnb accelerated the process of updating their codebase to adopt React Testing Library (RTL) and converted nearly 3.5K React test files originally using Enzyme.
The secret? The right mix of #WorkflowAutomation & #LLMs
Read more on #InfoQ https://bit.ly/4jgXr8W
Anonymous event planning with friends (whos-in.com)
Discussions: https://discu.eu/q/https://www.whos-in.com
Wildlife Protection System for Train Safety
--
https://github.com/Vinonsan/Srilankan-Railway-Safety-system <-- shared GitHub repository
--
#GIS #spatial #mapping #TechForGood #WildlifeConservation #AI #MachineLearning #ObjectDetection #ReactJS #NodeJS #Innovation #Sustainability #ConservationTech #AIForConservation #srilanka #risk #hazard #safety #model #modeling #mitigation #elephant #bull #wildlife #livestock #protection #realtime #detection #weather #safety #railroad #train #transportation #infrastructure #spatialanalysis #conservation #railway #railroad #economics
Want to improve your SPFx development? Learn how using React-based TypeScript (TSX) files can simplify your code and boost performance! #SPFx #ReactJS #TypeScript
Happy Monday!
I believe that if you start the week by removing code is a good start of the week!
I learned how to leverage JWT to send encrypted data to the frontend.
And so I stripped down my system of hooks in React and also deleted completely an endpoint in Django that I was using solely to fetch user info.
Even more secure, with less code.
Styled-components entering maintenance mode
https://opencollective.com/styled-components/updates/thank-you
Discussions: https://discu.eu/q/https://opencollective.com/styled-components/updates/thank-you
UIx- Idiomatisch #ClojureScript interface to modern React.js
https://github.com/pitch-io/uix
- Syntax: Rest params in props destructuring (same as [a b & xs] but for associative types e.g. {:keys [a b] :& xs})
should also exist in core #Clojure fpr associative types too