Get started with emotion-core CDN

MIT licensed

Emotion-core is a lightweight library for managing component-level CSS in React applications.

Tags:
  • css-in-js
  • babel-plugin
  • react
  • reactjs
  • css
  • emotion

Stable version

Copied!

How to start using emotion-core CDN


import createEmotion from 'https://cdn.cdnhub.io/emotion-core/11.0.0/core.umd.min.js';

const emotion = createEmotion();

const MyComponent = () => {
  const [className, setClassName] = emotion(`myComponent`);

  return (
    <div className={className}>
      <p>Hello, Emotion Core!</p>
    </div>
  );
};

export default MyComponent;
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions