Skip to content

Instantly share code, notes, and snippets.

@kaung8khant
kaung8khant / App.js
Last active June 7, 2023 15:18
Lazy Loading with React, GraphQL and Formik (Phone number input - country code with flag)
import React from "react";
import { gql } from "apollo-boost";
import { Form,Dropdown } from "semantic-ui-react";
import PhonePrefix from "PhonePrefix";
//use graphql for api call
const COUNTRY_QUERY = gql`
{
countries {
id