According to https://facebook.github.io/react/tips/inline-styles.html
CSS styles need to be passes as an object to the component. However, if you are trying to use transform styles you will get an error.
Translate also wasn't working for me. I fixed it by adding 'px' behind the var.
ES6 code:
render() {
const x = 100;
const y = 100;
const styles = {
transform: `translate(${x}px, ${y}px)`
};
return (
<div style={styles}></div>
);
}