···11-# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
22-# See the LICENCE file in the repository root for full licence text.
11+// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
22+// See the LICENCE file in the repository root for full licence text.
3344-import CommentsIndex from 'comments-index'
55-import core from 'osu-core-singleton'
66-import { createElement } from 'react'
44+import CommentsIndex from 'comments-index';
55+import core from 'osu-core-singleton';
66+import * as React from 'react';
7788-core.reactTurbolinks.register 'comments-index', ->
99- createElement(CommentsIndex, controllerStateSelector: '#json-index')
88+core.reactTurbolinks.register('comments-index', () => (
99+ <CommentsIndex controllerStateSelector='#json-index' />
1010+));
+8-7
resources/js/entrypoints/comments-show.tsx
···11-# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
22-# See the LICENCE file in the repository root for full licence text.
11+// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
22+// See the LICENCE file in the repository root for full licence text.
3344-import CommentsShow from 'comments-show'
55-import core from 'osu-core-singleton'
66-import { createElement } from 'react'
44+import CommentsShow from 'comments-show';
55+import core from 'osu-core-singleton';
66+import * as React from 'react';
7788-core.reactTurbolinks.register 'comments-show', ->
99- createElement(CommentsShow, controllerStateSelector: '#json-show')
88+core.reactTurbolinks.register('comments-show', () => (
99+ <CommentsShow controllerStateSelector='#json-show' />
1010+));