Get started with glamor CDN

MIT licensed

Glamor is a lightweight library for efficiently applying CSS styles to React components.

Tags:
  • css
  • inline

Stable version

Copied!

How to start using glamor CDN


import 'https://cdn.cdnhub.io/glamor/2.20.40/index.min.js';

const element = document.createElement('div');
element.innerHTML = 'Hello, World!';

glamor(element).willUpdate(() => ({
  color: 'red',
  fontSize: '24px',
  padding: '10px',
  border: '1px solid black',
}));

document.body.appendChild(element);
Copied!
Copied!
Copied!
Copied!

All versions