Im trying to save a value into firebase, however Im not sure how to get it there. Any advice? Is there an example in one of your files that I may have overlooked?
// Empty string for my value
constructor(props) {
super(props);
this.state = {
eventName: ''
};
}
Im trying to save a value into firebase, however Im not sure how to get it there. Any advice? Is there an example in one of your files that I may have overlooked?
// Empty string for my value constructor(props) { super(props); this.state = { eventName: '' }; }
// capturing user's input saveRecord = (event) => { var eventName = this.refs.eventName.getValue() debugger; };
// Textfield <TextField hintText="Event Name" ref='eventName' />
// Save button <RaisedButton label="Create" onTouchTap={this.saveRecord}
How do I get this value to drop into firebase.