Why Nostr? What is Njump?
2024-12-14 03:07:39
in reply to

npub1f8…0wlra on Nostr: nprofile1q…amz2t Depends on the web framework and how you use it. With React, for ...

Depends on the web framework and how you use it.

With React, for example, you can wrap the usual app components with something that has a useState for the error message that gets updated upon error as well as a conditional check to replace everything with an error message if it's not blank. Gimkit, for example, does exactly that. (that's also how I learned about that trick)

Vanilla JavaScript/HTML is going to be somewhat more difficult to add that to though.
Author Public Key
npub1f8kqyqz2hr8z7vayrh6vs8clu79wtv6ct76qcsq7temynx7cuhnqw0wlra