-
Notifications
You must be signed in to change notification settings - Fork 222
Open
Description
I follewed the setup instructions but I see no logs or anything. I am using CRA v5.0.1 and the react version is 18.2. WDYR is v7.0.1. Is this a compatibility issues? thanks
index.js:
import './whyDidYouRender'
import React from 'react'
import ReactDOM from 'react-dom/client'
// GLOBAL STYLES
import 'styles/global.module.scss'
// CONTEXT
import { AppProvider } from 'context/AppContext'
import App from './App'
const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
<AppProvider>
<App />
</AppProvider>
)
whyDidYouRender.js:
import React from 'react';
if (process.env.NODE_ENV === 'development') {
const whyDidYouRender = require('@welldone-software/why-did-you-render')
whyDidYouRender(React, {
trackAllPureComponents: true,
})
}
NgoTuDuy and mena234
Metadata
Metadata
Assignees
Labels
No labels