Skip to content

Instantly share code, notes, and snippets.

@addyosmani
Created September 9, 2017 00:25
Show Gist options
  • Save addyosmani/21bd72ed5d57c071c6ffea09b60602c3 to your computer and use it in GitHub Desktop.
Save addyosmani/21bd72ed5d57c071c6ffea09b60602c3 to your computer and use it in GitHub Desktop.
react-preact.md

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