File tree 7 files changed +40
-9
lines changed
7 files changed +40
-9
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ matrix:
11
11
12
12
install :
13
13
- haxelib install munit
14
- - haxelib install hamcrest
15
14
- haxelib install hxnodejs
16
15
- haxelib install html-entities
17
16
Original file line number Diff line number Diff line change
1
+ -lib munit
2
+ -cp src/lib
3
+ -cp test/src
4
+ -js _
5
+ react.React
Original file line number Diff line number Diff line change 1
1
## Changes
2
2
3
+ ### 1.8.0
4
+
5
+ - Haxe 4.0.0 support
6
+
7
+ ### 1.7.0
8
+
9
+ - Added new Context API extern
10
+
11
+ ### 1.6.0
12
+
13
+ - Use ` html-entities ` library
14
+
15
+ ### 1.5.0
16
+
17
+ - Haxe 4 preview support
18
+ - Improved breakpoint on JSX
19
+ - Added PureComponent extern
20
+ - Added new Refs API extern
21
+ - Improvement and documentation of ` @:jsxStatic ` functionality
22
+
3
23
### 1.4.0
4
24
5
25
- Generate ` displayName ` for ` @:jsxStatic ` components #86
Original file line number Diff line number Diff line change @@ -8,20 +8,25 @@ import support.sub.CompModule;
8
8
import AssertTools .assertHasProps ;
9
9
10
10
class CompBasic extends ReactComponent {
11
+ override function render () {
12
+ return jsx (' <div/>' );
13
+ }
11
14
}
12
15
class CompDefaults extends ReactComponent {
13
16
static public var defaultProps = {
14
17
defA :' A' ,
15
18
defB :42
16
19
}
20
+ override function render () {
21
+ return jsx (' <div/>' );
22
+ }
17
23
}
18
24
extern class CompExtern extends ReactComponent {
19
25
}
20
26
21
27
22
28
class ReactMacroTest
23
29
{
24
-
25
30
public function new () {}
26
31
27
32
@BeforeClass
Original file line number Diff line number Diff line change 1
1
import massive .munit .TestSuite ;
2
2
3
3
import JsxParserTest ;
4
- import JsxSanitizeTest ;
5
4
import ReactMacroTest ;
5
+ import JsxSanitizeTest ;
6
6
7
7
/**
8
8
* Auto generated Test Suite for MassiveUnit.
@@ -15,7 +15,7 @@ class TestSuite extends massive.munit.TestSuite
15
15
super ();
16
16
17
17
add (JsxParserTest );
18
- add (JsxSanitizeTest );
19
18
add (ReactMacroTest );
19
+ add (JsxSanitizeTest );
20
20
}
21
21
}
Original file line number Diff line number Diff line change 1
1
package support .sub ;
2
2
3
+ import react .ReactMacro .jsx ;
3
4
import react .ReactComponent ;
4
5
5
6
class CompModule extends ReactComponent
@@ -9,9 +10,11 @@ class CompModule extends ReactComponent
9
10
defB :43
10
11
}
11
12
12
- public function new ()
13
- {
13
+ public function new () {
14
14
super ();
15
15
}
16
-
17
- }
16
+
17
+ override function render () {
18
+ return jsx (' <div/>' );
19
+ }
20
+ }
Original file line number Diff line number Diff line change 1
1
-main TestMain
2
2
-lib munit
3
- -lib hamcrest
4
3
-lib html-entities
5
4
-cp src/lib
6
5
You can’t perform that action at this time.
0 commit comments