-
Notifications
You must be signed in to change notification settings - Fork 7
Import Ordering
Kato Charles edited this page May 27, 2019
·
1 revision
When importing, your import order should adhere to the standards laid out below:
// react libraries
import * as React from 'react';
// third-party libraries
import * as moment from 'moment';
// styles
import './styles.css';
// components
import Component from './Component.js';
// thunks (action creators)
import { loadComment } from '../../actions/CommentActions.js';
// helper functions
import { getClass } from '../../helpers/getClass';
// types
import { LOAD_NEW_NOTIFICATION_SUCCESS } from '../types';