fix: add React.Suspense boundary to lazy-loaded App and remove stray eslint-env comment

This commit is contained in:
Cursor Agent
2026-03-20 19:45:49 +00:00
parent c119a4b96e
commit ceff3d3e23
2 changed files with 3 additions and 2 deletions
@@ -5,7 +5,9 @@ const OtherComponent = React.lazy(() => import('./OtherComponent'))
export default function App () {
return (
<div className="app">
<OtherComponent />
<React.Suspense fallback={'loading...'}>
<OtherComponent />
</React.Suspense>
</div>
)
}
@@ -2,7 +2,6 @@ import { HelloX } from './hello-x.jsx'
import React from 'react'
import { mount } from '@cypress/react'
/* eslint-env mocha */
describe('HelloX component', () => {
it('works', () => {
mount(<HelloX name="SuperMan" />)