Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 512 Bytes

FirebaseWrite.md

File metadata and controls

32 lines (24 loc) · 512 Bytes

FirebaseWrite

HOC that enables easy write operations to Firebase

Options

path

Firebase root path for write operation

method

Firebase write method, one of push, set, transaction or update.

import { FirebaseWrite } from 'refire-app'
class CommentComponent extends Component {
  render() {
    const {
      submit,
      clearErrors,
      errors,
      processing
    } = this.props
  }
}
export default FirebaseWrite({
  path: "",
  method: "update"
})(CommentComponent)