HOC that enables easy write operations to Firebase
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)