Skip to content

Commit

Permalink
Add styled-components example (#1574)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister authored and JoviDeCroock committed Apr 25, 2019
1 parent 41cbc43 commit 3396e3e
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 27 deletions.
3 changes: 3 additions & 0 deletions demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import ProfilerDemo from './profiler';
import KeyBug from './key_bug';
import StateOrderBug from './stateOrderBug';
import PeopleBrowser from './people';
import StyledComp from './styled-components';
import { initDevTools } from 'preact/debug/src/devtools';
import { initDebug } from 'preact/debug/src/debug';
import DevtoolsDemo from './devtools';
Expand Down Expand Up @@ -69,6 +70,7 @@ class App extends Component {
<Link href="/empty-fragment" activeClassName="active">Empty Fragment</Link>
<Link href="/people" activeClassName="active">People Browser</Link>
<Link href="/state-order" activeClassName="active">State Order</Link>
<Link href="/styled-components" activeClassName="active">Styled Components</Link>
</nav>
</header>
<main>
Expand Down Expand Up @@ -96,6 +98,7 @@ class App extends Component {
<DevtoolsDemo path="/devtools" />
<EmptyFragment path="/empty-fragment" />
<PeopleBrowser path="/people/:user?" />
<StyledComp path="/styled-components" />
</Router>
</main>
</div>
Expand Down
151 changes: 125 additions & 26 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3396e3e

Please sign in to comment.