import React, {Component} from 'react';
import {connect} from 'react-redux';
import * as actions from '../actions/actions';

@connect (state => ({greeting: state.greeting}))
class App extends Component {
    static needs = [
        actions.getGreeting
    ];

    constructor(props) {
        super(props);
    }
    render() {
        return (
            <h1>{this.props.greeting}</h1>
        );
    }
}

export default App;
@@ -122,57 +122,8 @@
 ';%0A%0A
-@connect (state =%3E (%7Bgreeting: state.greeting%7D))%0A
 clas
@@ -368,12 +368,60 @@
 default 
+connect(state =%3E (%7Bgreeting: state.greeting%7D))(
 App
+)
 ;

use the non-decorator syntax for connect since babel 6 doesn't support it yet