• dependencyinjection@discuss.tchncs.de
    link
    fedilink
    arrow-up
    4
    ·
    2 个月前

    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>