HTTP/2 302
server: nginx
date: Sun, 12 Oct 2025 21:17:35 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20180627153939
location: https://web.archive.org/web/20180627153939/https://github.com/hedgerwang/react-styles
server-timing: captures_list;dur=1.217794, exclusion.robots;dur=0.045553, exclusion.robots.policy;dur=0.023037, esindex;dur=0.025287, cdx.remote;dur=100.115731, LoadShardBlock;dur=758.911837, PetaboxLoader3.datanode;dur=299.990520, PetaboxLoader3.resolve;dur=255.084954
x-app-server: wwwb-app224
x-ts: 302
x-tr: 1015
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app224; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 12 Oct 2025 21:17:39 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: GitHub.com
x-archive-orig-date: Wed, 27 Jun 2018 15:39:40 GMT
x-archive-orig-transfer-encoding: chunked
x-archive-orig-status: 200 OK
x-archive-orig-cache-control: no-cache
x-archive-orig-vary: X-PJAX
x-archive-orig-set-cookie: logged_in=no; domain=.github.com; path=/; expires=Sun, 27 Jun 2038 15:39:40 -0000; secure; HttpOnly
x-archive-orig-set-cookie: _gh_sess=b2FPM1FNK1dOTS81WjVLUHFXMGxXakJaMEVkUTF0dDBFa0pmY251cVhMNTJzdUpka2J2MDZDTlBFTmFFMnRmbGRRQnBhRXhURWxuM2hyWXlSSzZGQkZyRW1wMWw5U0Jxa0Z4SjMrYjhnKzVyMjhOWnRkU3lsNnkxWFVrYUJoc3RpMG9Rd1puV1ZXYmFncFRIKzl4amMxZTV1TVlLMGVRbjF6YmF0eFZHRlZVM0o1TWFBalJobFdUMTFzcWtSblo0WnJ2aVpZN1dzWFlzZnFjRmNmVmFhNXlIMzVleXM2MXN4RE9mQ1JqaEZwTE9FK2pVVVZKeHVjNGNpaFVrMlFrMUk1NGxHYlhqZFFVOFJDSDZqSWg4WlRsSzZhWjZ1L3hCZ2FZb2V0MmVrdTc0SDlqS3IvaEFqMFZLdDc1UWF1RDdmdU5oRTNJYkNCemNyNG02elErMlN1K09aNnloOFpvSStnT2p1T0dydUZHTkZQWlRQaG1hZitRc0wwSjhlSjJNY3hKeHE3VjUrZ2VoUnNBa3BZeTBkRzRWZHlqQk9UdXRHY21ZV25mS1R4bz0tLWZ1djBXUGpQTWFhTFNJWmJPREE1Snc9PQ%3D%3D--9469aaaf2d1159e8c17e72073918755df75e8187; path=/; secure; HttpOnly
x-archive-orig-x-request-id: 5c6983c7-522a-40e6-afa0-0f6a5bf7d0cd
x-archive-orig-x-runtime: 0.406490
x-archive-orig-strict-transport-security: max-age=31536000; includeSubdomains; preload
x-archive-orig-x-frame-options: deny
x-archive-orig-x-content-type-options: nosniff
x-archive-orig-x-xss-protection: 1; mode=block
x-archive-orig-expect-ct: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"
x-archive-orig-content-security-policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com status.github.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com wss://live.github.com; font-src assets-cdn.github.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: assets-cdn.github.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src assets-cdn.github.com; style-src 'unsafe-inline' assets-cdn.github.com
x-archive-orig-x-runtime-rack: 0.413944
x-archive-orig-x-github-request-id: 9CEC:324D:3405003:658F797:5B33AFBB
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 27 Jun 2018 15:39:39 GMT
link:
; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 27 Jun 2018 15:39:39 GMT", ; rel="memento"; datetime="Wed, 27 Jun 2018 15:39:39 GMT", ; rel="next memento"; datetime="Mon, 09 Nov 2020 06:03:48 GMT", ; rel="last memento"; datetime="Mon, 08 Sep 2025 05:42:55 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: archiveteam_github_20180630030011/archiveteam_github_20180630030011.megawarc.warc.gz
server-timing: captures_list;dur=0.849966, exclusion.robots;dur=0.034060, exclusion.robots.policy;dur=0.016931, esindex;dur=0.013996, cdx.remote;dur=85.934680, LoadShardBlock;dur=3621.677518, PetaboxLoader3.datanode;dur=277.431302, PetaboxLoader3.resolve;dur=3514.765047, load_resource;dur=291.691154
x-app-server: wwwb-app224
x-ts: 200
x-tr: 4083
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
GitHub - hedgerwang/react-styles: Utility to manage styles for React JS components
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
JavaScript

Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
README.md
React Styles
Utility to manage styles.
Code Example
var React = require('React');
var ReactStyle = require('ReactStyle');
// Require pre-defined style rules.
var ExampleStyleRules = require('ExampleStyleRules');
// Define your own style rules.
var AnotherStyleRules = ReactStyle.create({
'.body': {
borderWidth: '10px'
},
'.body > .header': {
fontSize: '10px',
fontWeight: 'bold'
}
});
// Add style rules to site.
ReactStyle.addRules(ExampleStyleRules);
ReactStyle.addRules(AnotherStyleRules);
var Example = React.createClass({
render: function() {
return (
<html>
<head>
<title>React Styles Example</title>
{ReactStyle.renderToComponents()}
</head>
<body class={ExampleStyleRules.body + ' ' + AnotherStyleRules.body}>
<h1 class={AnotherStyleRules.header}>
Hello World
</div>
</body>
</html>
);
}
});
module.exports = Example;
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.