Skip to content

Commit

Permalink
Merge pull request #8 from robinvdvleuten/removed-utils
Browse files Browse the repository at this point in the history
Using object spread to bind actions
  • Loading branch information
developit committed Nov 23, 2017
2 parents 17c2c02 + 26c6152 commit 67095eb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Preact Redux Example

A **10kb** Preact + Redux boilerplate built with [Preact CLI], implementing a To-Do List app.
A **9kb** Preact + Redux boilerplate built with [Preact CLI], implementing a To-Do List app.


<img src="https://i.gyazo.com/d655af6fc8768487897b13eb31500aa7.gif" width="207" />
Expand Down
3 changes: 1 addition & 2 deletions src/components/app.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { h, Component } from 'preact';
import { connect } from 'preact-redux';
import { bindActions } from '../util';
import reduce from '../reducers';
import * as actions from '../actions';
import TodoItem from './todo-item';

@connect(reduce, bindActions(actions))
@connect(reduce, { ...actions })
export default class App extends Component {
addTodos = () => {
const { text } = this.state;
Expand Down
7 changes: 0 additions & 7 deletions src/util.js

This file was deleted.

0 comments on commit 67095eb

Please sign in to comment.