aboutsummaryrefslogtreecommitdiff
path: root/demos/simple-react
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-06-18 20:48:07 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-06-18 20:48:07 -0700
commit7ed1b19d94f93e4313af65358f37e3337dd19f27 (patch)
tree18bdbf4430564d86037de86e028a4ccd911b6064 /demos/simple-react
parent6dce0c1e032edd9ff70f4a1c417a8662d1012e8b (diff)
downloadbun-7ed1b19d94f93e4313af65358f37e3337dd19f27.tar.gz
bun-7ed1b19d94f93e4313af65358f37e3337dd19f27.tar.zst
bun-7ed1b19d94f93e4313af65358f37e3337dd19f27.zip
CSS HMR!
Former-commit-id: 3f10c8790629ab157d9377759cc50a4b962cc6f4
Diffstat (limited to 'demos/simple-react')
-rw-r--r--demos/simple-react/index.html4
-rw-r--r--demos/simple-react/src/button.css15
-rw-r--r--demos/simple-react/src/index.css2
3 files changed, 10 insertions, 11 deletions
diff --git a/demos/simple-react/index.html b/demos/simple-react/index.html
index 0d1277743..3e227399a 100644
--- a/demos/simple-react/index.html
+++ b/demos/simple-react/index.html
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<head>
- <link rel="stylesheet" href="../src/index.css" />
- <script async src="../src/index.tsx" type="module"></script>
+ <link rel="stylesheet" href="src/index.css" />
+ <script async src="src/index.tsx" type="module"></script>
</head>
<body>
<div id="reactroot"></div>
diff --git a/demos/simple-react/src/button.css b/demos/simple-react/src/button.css
index 6940cffb3..15cca59e0 100644
--- a/demos/simple-react/src/button.css
+++ b/demos/simple-react/src/button.css
@@ -1,21 +1,20 @@
body {
- background-color: yellow;
+ background-color: green;
+ border: 10px solid pink;
+ color: pink;
+ box-shadow: 10px 10px 32px red;
}
body {
- background-color: yellow;
+ background-color: blue;
}
body {
- background-color: yellow;
+ background-color: aliceblue;
}
body {
- background-color: yellow;
-}
-
-body {
- background-color: yellow;
+ background-color: red;
}
body {
diff --git a/demos/simple-react/src/index.css b/demos/simple-react/src/index.css
index e1bfbb825..cbcf1e654 100644
--- a/demos/simple-react/src/index.css
+++ b/demos/simple-react/src/index.css
@@ -1,5 +1,5 @@
@import "./button.css";
body {
- background-color: pink;
+ background-color: orange;
}