Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@flow
- import React from "react";
- import styled from "styled-components";
- import "App.css";
- const Background = styled.div`
- height: 100vh;
- `;
- type Props = {
- children?: React$Node,
- wallpaper: string,
- };
- export default class extends React.PureComponent<Props> {
- render() {
- return (
- <Background className={this.props.wallpaper}>
- {this.props.children}
- </Background>
- );
- }
- }
Add Comment
Please, Sign In to add comment