this post was submitted on 14 May 2024
505 points (94.5% liked)

Programmer Humor

19817 readers
1726 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 2 years ago
MODERATORS
505
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 7 months ago

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>