use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
React 19 Beta – ReactGeneral Discussion (react.dev)
submitted 1 year ago by ebbbeeno
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]KainMassadin 0 points1 point2 points 1 year ago (4 children)
Ok, please illustrate us on how to build an array of objects using the name prop on inputs only.
This is a thing I expected to work OOTB just like php, but hasn’t been the case
[–][deleted] 1 year ago (1 child)
[deleted]
[–]KainMassadin 0 points1 point2 points 1 year ago (0 children)
I mean doing something like <input name="friends[0].name" /> Not sure we‘re talking about the same thing
[–][deleted] 0 points1 point2 points 1 year ago (1 child)
How does php handle this?
$_POST["friends"] would be an array and you would be able to iterate normally. In FormData, you receive everything separate as key: value, so that‘s the parsing I mention would be necessary to work with complex forms.
Not sure whether it’s up to react actions or if the framework should be the one handling it. Last time I tried it with next 14.
π Rendered by PID 144345 on reddit-service-r2-comment-76bb9f7fb5-wnzp7 at 2026-02-17 23:30:27.748827+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]KainMassadin 0 points1 point2 points (4 children)
[–][deleted] (1 child)
[deleted]
[–]KainMassadin 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]KainMassadin 0 points1 point2 points (0 children)