We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2783967 commit f6f98b8Copy full SHA for f6f98b8
examples/react-component-bundle/src/index.scss
@@ -1,7 +1,10 @@
1
-.counter-text {
2
- font-size: 50px;
+.counter-title {
+ width: 100px;
3
+ height: 100px;
4
+ background: no-repeat url('./assets/logo.svg');
5
+ background-size: cover;
6
}
7
-.title {
- background: url('./assets/logo.svg');
8
+.counter-text {
9
+ font-size: 50px;
10
examples/react-component-bundle/src/index.tsx
@@ -8,7 +8,7 @@ export const Counter: React.FC = () => {
return (
<div>
11
- <h1 className="title" />
+ <h1 className="counter-title">Counter React Component</h1>
12
<h2 className="counter-text">Counter: {count}</h2>
13
<CounterButton onClick={decrement} label="-" />
14
<CounterButton onClick={increment} label="+" />
0 commit comments