Browse Source

Fix(examples): #2585 Fixed React example (#2587)

* Fix redraw order
* Fix error when option is not defined
* Allow template labels
* Add .travis.yml file
* Add experiment travis code
* Fix react example
babelFix
yotamberk 7 years ago
committed by Alexander Wunschik
parent
commit
55a8b70792
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/timeline/other/usingReact.html

+ 1
- 1
examples/timeline/other/usingReact.html View File

@ -93,7 +93,7 @@
return ReactDOM.render(<ItemTemplate item={item} />, element); return ReactDOM.render(<ItemTemplate item={item} />, element);
}, },
groupTemplate: function (group, element) { groupTemplate: function (group, element) {
if (!item) { return }
if (!group) { return }
ReactDOM.unmountComponentAtNode(element); ReactDOM.unmountComponentAtNode(element);
return ReactDOM.render(<GroupTemplate group={group} />, element); return ReactDOM.render(<GroupTemplate group={group} />, element);
} }

Loading…
Cancel
Save