 el = React.createElement
 
 export class Content extends React.PureComponent
-  constructor: (props) ->
-    super props
-
-    @pageRef = React.createRef()
-
-
   getSnapshotBeforeUpdate: (prevProps, prevState) =>
     snapshot =
       scrollToLastEvent: prevProps.isAutoloading && @props.isAutoloading && osu.bottomPageDistance() < 10

    eventsGroupOpen = div className: classWithModifiers('mp-history-content__item', ['event', 'event-open'])
    eventsGroupClose = div className: classWithModifiers('mp-history-content__item', ['event', 'event-close'])

    div className: 'mp-history-content', ref: @pageRef,
      h3 className: 'mp-history-content__item', @props.match.name

      if @props.hasPrevious

      if prevProps.events?.length > 0 && @props.events?.length > 0
        # This is to allow events to be added without moving currently
        # visible events on viewport.
        if prevProps.events[0].id > @props.events[0].id
          snapshot.referenceFunc = -> document.body.scrollHeight
        else
          snapshot.referenceFunc = -> 0

        snapshot.referencePrev = snapshot.referenceFunc()
    snapshot


