added backup source for future ref
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com;
|
||||
|
||||
import react.ReactComponent;
|
||||
import react.ReactMacro.jsx;
|
||||
import Webpack.*;
|
||||
|
||||
class Foo2 extends ReactComponent {
|
||||
|
||||
static var STYLES = require('./Foo.css');
|
||||
static var IMG = require('./bug.png');
|
||||
static var CONFIG = require('../config.json');
|
||||
|
||||
|
||||
override function render() {
|
||||
return jsx('
|
||||
<div className="foo2">
|
||||
<img src=$IMG/> ${CONFIG.hello}!
|
||||
<hr/>
|
||||
Let\'s do some HRM guys<br/>
|
||||
</div>
|
||||
');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user