Skip to content

Commit eb3f254

Browse files
Small improvements in react-starter template
1 parent 5425ea4 commit eb3f254

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

jscomp/bsb/templates/react-starter/src/App.re

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ let make = () => {
2222
<button onClick={_ => dispatch(Decrement)}>
2323
{React.string("Decrement")}
2424
</button>
25-
<span> {state.count |> string_of_int |> React.string} </span>
25+
<span className="counter">
26+
{state.count |> string_of_int |> React.string}
27+
</span>
2628
<button onClick={_ => dispatch(Increment)}>
2729
{React.string("Increment")}
2830
</button>
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
body {
22
margin: 0;
3-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
4-
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
5-
sans-serif;
6-
-webkit-font-smoothing: antialiased;
7-
-moz-osx-font-smoothing: grayscale;
3+
font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial,
4+
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
85
}
96

107
main {
118
padding: 20px;
129
}
10+
11+
.counter {
12+
padding: 20px;
13+
display: inline-block;
14+
}

0 commit comments

Comments
 (0)