Skip to content

Instantly share code, notes, and snippets.

@kwoncharles
Last active February 24, 2019 07:09
Show Gist options
  • Save kwoncharles/2eca4c56f1c81f9e83af03bd8a309432 to your computer and use it in GitHub Desktop.
Save kwoncharles/2eca4c56f1c81f9e83af03bd8a309432 to your computer and use it in GitHub Desktop.
import React, { useState } from 'react';
import moment from 'moment';
import { withCookies, Cookies, ReactCookieProps } from 'react-cookie';
import PopUpView from '../popup/PopUpView';
import './Main.css'
interface MainProps extends ReactCookieProps {}
function Main(props: MainProps) {
const [cookies, setCookies] = useState<Cookies | undefined>(props.cookies);
return (
<div className="Main">
<PopUpView />
</div>
)
}
export default withCookies(Main);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment