This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
body { | |
font-size: 100%; | |
background: url(../img/repeater.jpg); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import CSS | |
import '../css/master.scss'; | |
// Import React and JS | |
import HelloBox from './HelloBox'; | |
import React from 'react'; | |
// Render! | |
React.render(<HelloBox />, document.getElementsByTagName('body')[0]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import React and HelloText class | |
import React from 'react'; | |
import HelloText from './HelloText'; | |
// Create class called HelloBox that extends the base React Component class | |
export default class HelloBox extends React.Component { | |
constructor() { | |
super(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import React | |
import React from 'react'; | |
// Create class called HelloText that extends the base React Component class | |
export default class HelloText extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { |
OlderNewer