Code for performance comparison between styled-components and emotion for React
More: Subscribe on YouTube / Follow on Twitter 🌹.
Setup:
git clone https://github.com/basarat/css-in-js-pref.git
cd css-in-js-pref
npm i
Terminal 1:
npm start
Terminal 2:
npx ts-node --compiler-options '{ "module" : "commonjs" }' ./src/scripts/test.tsx