tjx666 / awesome-chrome-extension-boilerplate

Use react + typescript + webpack to enhance your chrome extension development experience
MIT License
407 stars 44 forks source link

React devtools integration #39

Closed lndgalante closed 1 year ago

lndgalante commented 1 year ago

Hi @tjx666 would like to know if there's any guide or similar to integrate react dev-tools to any chrome extension, ty!

tjx666 commented 1 year ago
  1. add react-devtools to webpack entry like https://github.com/tjx666/awesome-chrome-extension-boilerplate/blob/master/server/utils/entry.ts#L28
  2. install and start https://www.npmjs.com/package/react-devtools
tjx666 commented 1 year ago

Or just following https://github.com/facebook/react/tree/main/packages/react-devtools#usage-with-react-dom