O'Reilly logo
  • Andrey Shmigelsky thinks this is interesting:

To define a custom style attribute simply pass a JavaScript object with camelCase property names and the desired css values.

var styles = {
  borderColor: "#999",
  borderThickness: "1px"
React.renderComponent(<div style


Cover of Developing a React Edge: The JavaScript Library for User Interfaces


Style attribute