Created
June 21, 2021 06:09
-
-
Save Justintime50/076361a16e8c1a11495f9411a9fe832d to your computer and use it in GitHub Desktop.
Examples of ES6 to ES5 Javascript Imports
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 moment from "moment"; | |
=> const moment = require("moment"); | |
import React from "react"; | |
=> const React = require("react"); | |
import text from "../../helpers/text"; | |
=> const text = require("../../helpers/text"); | |
import Button from "../../elements/buttons/Button"; | |
=> const Button = require("../../elements/buttons/Button"); | |
import { Container1 } from "next/app"; | |
=> const Container1 = require("next/app").Container1; | |
import { checkmark } from "../../elements/utils"; | |
=> const checkmark = require("../../elements/utils").checkmark; | |
import { IntlProvider, addLocaleData } from "react-intl"; | |
=> const IntlProvider = require("react-intl").IntlProvider; | |
=> const addLocaleData = require("react-intl").addLocaleData; | |
import { close as crossIcon } from "react-icons-kit/ionicons/close"; | |
=> const crossIcon = require("react-icons-kit/ionicons/close").close; | |
import { close as crossIcon, open as openIcon } from "react-icons-kit/ionicons/close"; | |
=> const crossIcon = require("react-icons-kit/ionicons/close").close; | |
=> const openIcon = require("react-icons-kit/ionicons/close").open; | |
import App, { Container, connect, coon as alias } from "next/app"; | |
=> const App = require(next/app); | |
=> const Container = require("next/app").Container; | |
=> const connect = require("next/app").connect; | |
=> const alias = require("next/app").coon; | |
import { | |
compose, | |
withApollo, | |
gql | |
} from 'react-apollo'; | |
=> const compose = require('react-apollo').compose; | |
=> const withApollo = require('react-apollo').withApollo; | |
=> const gql = require('react-apollo').gql; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment