Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Interactive card details form using React

react, sass/scss, vite
SutonToch•340
@SutonToch
A solution to the Interactive card details form challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License