Skip to content
This repository was archived by the owner on May 4, 2020. It is now read-only.
This repository was archived by the owner on May 4, 2020. It is now read-only.

How to validate parent form component while field validation happens in child components #66

Description

@idealistic

@jurassix, What if every form field is its own react component/class. The joi validation happens inside each component. The parent component, i.e. the form, just adds each component. In this case, how do you check if the form is valid?

I tried calling this.validate from the form component but it is throwing undefined.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions