Skip to content

Instantly share code, notes, and snippets.

@prasanna1211
Created January 25, 2018 07:20
Show Gist options
  • Select an option

  • Save prasanna1211/cc49f077dd7e5052549162edcf68429e to your computer and use it in GitHub Desktop.

Select an option

Save prasanna1211/cc49f077dd7e5052549162edcf68429e to your computer and use it in GitHub Desktop.

Revisions

  1. prasanna1211 created this gist Jan 25, 2018.
    9 changes: 9 additions & 0 deletions form-lib-12.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    ```.js
    <Formsy.Form ref="form">
    {/* ... input component having value of gender */}
    <GenderDependentComponent
    value={defaultValue}
    currentGender={this.refs.form.getModal().gender}
    />
    </Formsy.Form>
    ```