This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import SpeakersRenderProps from "./SpeakersRenderProps"; | |
const Speakers = () => { | |
return ( | |
<SpeakersRenderProps> | |
{({speakers}) => { | |
return ( | |
<div> | |
{speakers.map(({ name, address })=> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react" | |
import withData from "./withData"; | |
const maxSpeakersToShow = 2; | |
const Speakers = ({speakers}) => { | |
return ( | |
<div> | |
{speakers.map(({ name, address })=> { | |
return <h1>{name, address}</h1> | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react'; | |
import { useHistory } from 'react-router-dom'; | |
import Login from './Component/index'; | |
import { useFormik } from 'formik'; | |
import * as Yup from 'yup'; | |
import { useMutation, gql } from '@apollo/react-hooks'; | |
export default () => { | |
const history = useHistory(); | |
const [loginData, setLoginData] = useState({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const fetch = require('node-fetch'); | |
const redis = require('redis'); | |
const PORT = process.env.PORT || 5000; | |
const REDIS_PORT = process.env.REDIS_PORT || 6379; | |
const client = redis.createClient(REDIS_PORT); | |
const app = express(); |