Interactive card details form using React

Solution retrospective
I totally underestimated the scope of this project. I thought it was a quick ~4-6h project but ended up to be more than 10h of work for me. Well, now I know.
Is there any good way to give 'border-images' a 'border-radius'-like rounded corner using react? In vanilla JS I would probably create a new absolute element using the position of the element I want the background for, but in React getting an element from the DOM to get it's position is an outside effect, which means you need state to check if an input is active.. that just seems like unnecessary work and re-renders for slightly rounded corners.
Any advice is highly appreciated. Thanks!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on SutonToch's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord