Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 84ef39e

Browse files
committed
createClass -> class extends
1 parent b9cd364 commit 84ef39e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/react/element_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def render
6060

6161
it 'will subscribe to a native components event param' do
6262
%x{
63-
window.NativeComponent = React.createClass({
63+
window.NativeComponent = class extends React.Component({
6464
displayName: "HelloMessage",
65-
render: function render() {
65+
render() {
6666
return React.createElement("span", null, this.props.onEvent());
6767
}
6868
})

0 commit comments

Comments
 (0)