Files
JJ KasperandGitHub 90f022aeb6 Update test config (#43661)
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.
2022-12-03 19:49:00 -08:00

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