Skip to content

Commit

Permalink
disable strict mode for now
Browse files Browse the repository at this point in the history
so that Transition works with React 18 (see tailwindlabs/headlessui#681)
  • Loading branch information
malfynnction committed Apr 9, 2022
1 parent 855a4cc commit 044d401
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App'
Expand All @@ -7,11 +6,7 @@ import reportWebVitals from './reportWebVitals'

const container = document.getElementById('root')
if (container) {
createRoot(container).render(
<React.StrictMode>
<App />
</React.StrictMode>
)
createRoot(container).render(<App />)
}

// If you want your app to work offline and load faster, you can change
Expand Down

0 comments on commit 044d401

Please sign in to comment.