demarches-normaliennes/app/javascript/components/Loadable.js

9 lines
201 B
JavaScript
Raw Normal View History

2019-08-14 13:11:36 +02:00
import React from 'react';
import Loadable from 'react-loadable';
const loading = () => <div className="spinner left" />;
2020-04-30 15:42:29 +02:00
export default function (loader) {
2019-08-14 13:11:36 +02:00
return Loadable({ loader, loading });
}