List of helpful shortcuts for faster coding
This file contains 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
/* eslint-disable import/no-named-as-default */ | |
import React, { Suspense, lazy } from 'react'; | |
import { connect } from 'react-redux'; | |
import { Switch, Route, Redirect } from 'react-router-dom'; | |
import Auth from 'containers/Auth/Auth'; | |
import Orders from 'containers/Orders/Orders'; | |
import { checkAuthTimeOut } from 'actions'; | |
import Spinner from 'components/UI/Spinner/Spinner'; | |
import Layout from 'components/Layout/Layout'; | |
import BurgerBuilder from 'containers/BurgerBuilder/BurgerBuilder'; |
This file contains 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 { Provider } from 'react-redux'; | |
import configureMockStore from 'redux-mock-store'; | |
import { mount, shallow } from 'enzyme'; | |
import { MemoryRouter } from 'react-router-dom'; | |
import thunk from 'redux-thunk'; | |
import { BurgerBuilder } from 'containers/BurgerBuilder/BurgerBuilder'; | |
import { Auth } from 'containers/Auth/Auth'; | |
import Layout from 'components/Layout/Layout'; |
This file contains 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, { useMemo } from 'react'; | |
// no default value | |
const guessedWordsContext = React.createContext(); | |
/** | |
* @function useGuessedWords | |
* @returns {Array} guessedWordsContext value, which is a state of [value, setter]. | |
* |