GamersPlane
KPCKevin Powell - Community
•Created by GamersPlane on 4/25/2025 in #help
Swapping in inline form vs disabled/styled input
If I have a displayed element (lets say a name) that I want the user to be able to change, I see two options:
1) A display element (a div or something) and an inline form, with javascript showing one or the other based on clicking an edit button, cancelling the form, etc.
2) A input with classes/disabled that's swapped via interaction, so in one state it looks like an unstyled display element, and the other looks like an input.
Is there any downside to the latter? If the form/input are both submitted via fetch anyway, is there any problem with just having an unstyled input?
10 replies
KPCKevin Powell - Community
•Created by GamersPlane on 4/4/2025 in #help
Can a FE only app (React/NextJS) read CSV from a user without submitting to a backend?
Based on my knowledge, this isn't possible, but I thought I'd ask as FE advances faster than I (a backend dominant full-stack) can keep up with.
Is it possible for me to create a mini app, using something like NextJS, to take a file a user submits and do some work based on it? If it matters, I want to take the data to fill a template (create name tags with barcodes). Best as I know and have been able to google, a NextJS app can read something out of public, but I haven't seen anything about reading something straight from the user, without first submitting to a backend.
10 replies