this post was submitted on 14 May 2024
508 points (94.6% liked)

Programmer Humor

19557 readers
341 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments

So my first role as a developer I’m working on an application that runs various classes for children, the parents sign up but it’s children they’re booking for.

We use reactstrap and there is a package called buttonasync and it has a method of executingChildren, let’s say I was a little confused.

return (
            <Form onSubmit={onSubmit}>
				<FormGroup>
                    <Label htmlFor="name">Name</Label>
                    <Input type="text" name="name" placeholder="Name" value={props.name} />
                </FormGroup>

				<ButtonAsync type="submit" color="primary" isExecuting={isSaving}
					executingChildren={<><FontAwesomeIcon icon="spinner" spin /> Saving...</>}>
					<FontAwesomeIcon icon="save" /> Save
				</ButtonAsync>
            </Form>