࣮ྫ
2. ఆٛͨ͠ίϯϙʔωϯτͷελΠϧΛΠϯϥΠϯ (style="") ʹల։͢Δ
JS
var StyleSheet = require('react-style');
var React = require('react');
var styles = StyleSheet.create({
normal: {
color: 'rgba(0, 0, 0, .7)',
backgroundColor: '#e6e6e6'
}
});
class HelloWorld extends React.Component {
render() {
return
Hello World!
}
}
※ ্هͷྫͰ react-style ͷ༷ʹΑΓɺଐੑ໊͕ style Ͱͳ͘ styles ʹͳ͍ͬͯΔɻ