diff --git a/test/integration/static/pages/counter.js b/test/integration/static/pages/counter.js
index c60c62d9..bec17a3f 100644
--- a/test/integration/static/pages/counter.js
+++ b/test/integration/static/pages/counter.js
@@ -1,27 +1,23 @@
import React from 'react'
import Link from 'next/link'
-export default class Counter extends React.Component {
- constructor (...args) {
- super(...args)
- this.state = { count: 0 }
- }
+let counter = 0
+export default class Counter extends React.Component {
increaseCounter () {
- const { count } = this.state
- this.setState({ count: count + 1 })
+ counter++
+ this.forceUpdate()
}
render () {
- const { count } = this.state
return (
-
Counter: {count}
+
Counter: {counter}