r-park / todo-react-redux

Todo app with Create-React-App • React-Redux • Firebase • OAuth
https://todo-react-redux.firebaseapp.com
MIT License
1.02k stars 272 forks source link

Saving to Firebase #69

Closed KillerBee05 closed 7 years ago

KillerBee05 commented 7 years ago

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.

KillerBee05 commented 7 years ago

Figured it out