Skip to content

Instantly share code, notes, and snippets.

View ghardin137's full-sized avatar

Greg Hardin ghardin137

View GitHub Profile
@ghardin137
ghardin137 / REACT SAMPLE.js
Last active June 24, 2019 18:34
REACT SAMPLE
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Banner from './stateless/Banner/Banner';
import ContestWinnerList from './stateless/ContestWinnerList/ContestWinnerList';
import { getData, closeRequest } from './helpers/GetDailyContestWinners';
class DailyContestWinners extends Component {
state = {
externalData: [],
loading: false,
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import './ContestWinnerList.scss';
export default class ContestWinnerList extends Component {
state = {
currentTop: 0;
}
timeout = null;
const menuAndCategory = [
{
menu_name: "First Menu",
menu_description: "I love menus and everything it brings me ",
menu_unique_menu_id: "7d491498-8702-41ba-af53-4dff90f46fc8",
category_name: "Breakfast",
unique_category_id: "71f317cb-6376-4435-ba6c-3a57d006bca6",
product_id: "eda57dcf-234f-423a-9ee3-433e8264ab91",
},
{