ReactJS : How to use "form" tag? -
hello i'm trying learn reactjs , know why using tag build forms.
i mean when use code:
import { textinput, form, view } 'react-native' <form onsubmit={this.onsubmit}> <textinput/> </form>
i got error :
element type invalid: expected string (for built-in components) or class/function (for composite components) got: undefined. forgot export component file it's defined in.
or when use code :
import { textinput, form, view } 'react-native' render (){ return ( <view> <form onsubmit={this.onsubmit}> <textinput/> </form> </view> ); }
i got error :
expected component class, got [object object].
i'm trying fix , use form i'm trying understand how works :)
thank time , responses in advance.
cheers
react-native doesn't contain form
tag.
there libraries such react-native-form-generator provide similar functionality looking for.
moreover, error you're getting trying tell - class or function defines react component expected specify tag, undefined
, since there no such component.
Comments
Post a Comment