demarches-normaliennes/app/javascript/components/Loadable.js
2019-11-28 14:45:40 +01:00

8 lines
200 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 });
}