Skip to content

Commit b693f41

Browse files
committed
fix (examples): use component in clock example instead of purecomponent
1 parent 097e4d1 commit b693f41

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dist/clock.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38941,8 +38941,8 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
3894138941

3894238942
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3894338943

38944-
var App = function (_PureComponent) {
38945-
_inherits(App, _PureComponent);
38944+
var App = function (_Component) {
38945+
_inherits(App, _Component);
3894638946

3894738947
function App() {
3894838948
_classCallCheck(this, App);
@@ -38989,7 +38989,7 @@ var App = function (_PureComponent) {
3898938989
}]);
3899038990

3899138991
return App;
38992-
}(_react.PureComponent);
38992+
}(_react.Component);
3899338993

3899438994
// wrap the component with easyComp before exporting it
3899538995

examples/clock/App.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import React, { PureComponent } from 'react'
1+
import React, { Component } from 'react'
22
import moment from 'moment'
33
import { easyComp } from 'react-easy-state'
44

5-
class App extends PureComponent {
5+
class App extends Component {
66
constructor () {
77
super()
88

0 commit comments

Comments
 (0)