The react-motion library is really amazing, the '=>' operator confused me though. During my implementation, it always show me some syntax error such as "Uncaught SyntaxError: Unexpected token {". I checked my code and I was unable to find the bug. I can't understand what is the meaning of "=>" and what syntax should follow. Could anyone solve my doubt? here's my code:
<Motion defaultStyle={this.getDefaults()} style={this.getEnds()}>
            {current => {
                    Object.keys(current).map(key => {
                        let {rotate,scale} = current[key].val;
                        let style = {
                            transform: `rotate(${rotate}deg) scale(${scale})`
                        };
                        return 
                            <div
                                key={key}
                                className="block"
                                style={style}>
                                {key}
                            </div>
                    })}
            }
        </Motion>
Thank you.
 
    