mirror of
https://github.com/seigler/presentation-react-state-management
synced 2025-07-27 01:36:09 +00:00
style improvement
This commit is contained in:
parent
7e97e336b0
commit
de3f50b388
2 changed files with 12 additions and 1 deletions
|
@ -9,7 +9,12 @@ export function App() {
|
||||||
<header>
|
<header>
|
||||||
<h1>React State Management</h1>
|
<h1>React State Management</h1>
|
||||||
<nav>
|
<nav>
|
||||||
<Link to="/">Introduction</Link>
|
<NavLink
|
||||||
|
to="/"
|
||||||
|
end
|
||||||
|
className={({ isActive }) => (isActive ? 'isActive' : '')}>
|
||||||
|
Introduction
|
||||||
|
</NavLink>
|
||||||
{strategies.map(({ name }) => (
|
{strategies.map(({ name }) => (
|
||||||
<NavLink
|
<NavLink
|
||||||
key={name}
|
key={name}
|
||||||
|
|
|
@ -4,6 +4,12 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>React State Management</title>
|
<title>React State Management</title>
|
||||||
<link rel="stylesheet" href="npm:simpledotcss/simple.min.css" />
|
<link rel="stylesheet" href="npm:simpledotcss/simple.min.css" />
|
||||||
|
<style>
|
||||||
|
a.isActive {
|
||||||
|
background-color: var(--accent);
|
||||||
|
color: var(--bg) !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue