as @michealmuxica said, the style prop is is just a JS object with camel casing for the keys. So you can set your style on your components as such:
I prefer to create another JS file per component to contain the style objects, then import them into the component's file. I feel like this keeps the code more clean and modular:
//in MyComponentStyles.js
var style = {
base:{
height:"100%",
width: "100%",
marginLeft: "auto",
marginRight: "auto"
},
//...other styles...
};
export default styles;
//in MyComponent.js
import {default as MyComponentStyles} from ".//MyComponentStyles.js;
var App = React.createClass({
render: function() {
return ( );
}
});