demarches-normaliennes/app/javascript/components/Loadable.js
2020-05-12 18:18:37 +02:00

8 lines
201 B
JavaScript

import React from 'react';
import Loadable from 'react-loadable';
const loading = () => <div className="spinner left" />;
export default function (loader) {
return Loadable({ loader, loading });
}