diff --git a/core/__tests__/__snapshots__/Library.js.snap b/core/__tests__/__snapshots__/Library.js.snap index c646a8eb..a36e9f09 100644 --- a/core/__tests__/__snapshots__/Library.js.snap +++ b/core/__tests__/__snapshots__/Library.js.snap @@ -19,8 +19,9 @@ exports[`Library renders 1`] = ` class="nanolgtq4w" > Kit @@ -33,7 +34,16 @@ exports[`Library renders 1`] = `
+ > +
+ +
diff --git a/core/__tests__/__snapshots__/Matrix.js.snap b/core/__tests__/__snapshots__/Matrix.js.snap index a685ed09..1fc53ff4 100644 --- a/core/__tests__/__snapshots__/Matrix.js.snap +++ b/core/__tests__/__snapshots__/Matrix.js.snap @@ -10,7 +10,7 @@ exports[`Matrix renders all examples 1`] = ` w="512" > ( - + {/* renders in iframe when useFrame is true */} diff --git a/core/src/Library.js b/core/src/Library.js index 913d0fea..c47a98ba 100644 --- a/core/src/Library.js +++ b/core/src/Library.js @@ -2,8 +2,7 @@ import React from 'react' import PropTypes from 'prop-types' import nano from 'nano-style' import { - BrowserRouter, - StaticRouter, + HashRouter, Route, NavLink, Link, @@ -64,16 +63,14 @@ const NavItem = nano(NavLink)({ } }) -const Router = typeof document !== 'undefined' ? BrowserRouter : StaticRouter - export class Library extends React.Component { render() { const { basename, ...props } = this.props return ( - + - + ) } }