Home >Web Front-end >HTML Tutorial >React's CSS definition: ReactCSS_html/css_WEB-ITnose
ReactCSS is a CSS style operation encapsulation and definition implemented based on React mode. Provides a very simple way to attach inline CSS styles
Sample code:
var ReactCSS = require('reactcss');class Button extends ReactCSS.Component { classes() { return { 'default': { modal: { background: '#fff', boxShadow: '0 2px 4px rgba(0, 0, 0, .48)' }, title: { fontSize: '24px' }, Content: { type: 'modal-content', padding: '20px' } } } } ...}
Project homepage: http://www .open-open.com/lib/view/home/1436056910837