mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Updates our test config to take advantage of more concurrency and also updates to leverage the playwright docker image to reduce flakes from actions/setup-node stalling or playwright dependencies stalling on `apt install`. This reduces our test times from upwards of 30 minutes down to back around 15 minutes.
32 lines
598 B
JavaScript
32 lines
598 B
JavaScript
import React from 'react'
|
|
|
|
class App extends React.Component {
|
|
constructor() {
|
|
super()
|
|
|
|
this.divRef = React.createRef()
|
|
|
|
this.state = {
|
|
refHeight: 0,
|
|
}
|
|
}
|
|
|
|
componentDidMount() {
|
|
const refHeight = this.divRef.current.clientHeight
|
|
this.setState({ refHeight })
|
|
}
|
|
|
|
render() {
|
|
const { refHeight } = this.state
|
|
|
|
return (
|
|
<div ref={this.divRef} style={{ height: 76, overflow: 'hidden' }}>
|
|
<h1>DOM Ref test using 9.2.0</h1>
|
|
<code id="ref-val">{`this component is ${refHeight}px tall`}</code>
|
|
</div>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default App
|