Skip to content

Instantly share code, notes, and snippets.

@nazariyv
Created March 12, 2020 15:08
Show Gist options
  • Save nazariyv/99f169d4d5885fbb2b80cf5fda763f9f to your computer and use it in GitHub Desktop.
Save nazariyv/99f169d4d5885fbb2b80cf5fda763f9f to your computer and use it in GitHub Desktop.
App.js
import React from "react";
import { Client as Styletron } from "styletron-engine-atomic";
import { Provider as StyletronProvider } from "styletron-react";
import { LightTheme, BaseProvider, styled } from "baseui";
const engine = new Styletron();
const Centered = styled("div", {
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%"
});
function App() {
return (
<StyletronProvider value={engine}>
<BaseProvider theme={LightTheme}>
<Centered></Centered>
</BaseProvider>
</StyletronProvider>
);
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment