Skip to content

Instantly share code, notes, and snippets.

Created September 9, 2017 00:25
What would you like to do?

Working with a React codebase and want to use Preact? Ideally, you should use preact and preact-compat for your dev, prod and test builds. This will enable you to discover any interop bugs early on. If you would prefer to only alias preact and preact-compat in Webpack for production builds (e.g if your preference is using React DevTools and enzyme), make sure to thoroughly test everything works as expected before deploying to your servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment