I recently migrated a fairly large project from using Styled Components to Emotion. For this guide, I will focus only on the how, and not the why. Styled Components and Emotion are both capable libraries with their own quirks that you can delve into on your own. I do really love their ability to simplify styling of react components.
. . .This article is an extension of Getting started with Meteor and React, except that I've modified the code to work with ES6.
There's no extra configuration as the react
plugin transpiles ES6 out of the box. However I've had to include one extra file: libs/methods.js
which enables Meteor to access my React.Component
. . .
This update link alerts you to new Silvrback admin blog posts. A green bubble beside the link indicates a new post. Click the link to the admin blog and the bubble disappears.