openreplay/frontend/app/components/hocs/withPageTitle.js
Shekar Siri 2ed5cac986
Webpack upgrade and dependency cleanup (#523)
* change(ui) - webpack update
* change(ui) - api optimize and other fixes
2022-06-03 16:47:38 +02:00

9 lines
215 B
JavaScript

import React from 'react';
export default title => BaseComponent => class extends React.Component {
componentDidMount() {
document.title = title
}
render() {
return <BaseComponent { ...this.props }/>
}
}