From a6422f629e36eb4d1ef5330266bad962432a8c4f Mon Sep 17 00:00:00 2001 From: Andrew Fuller Date: Thu, 15 Jun 2017 23:56:41 -0500 Subject: [PATCH] Use ES module for top level export --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index adfa4481..8ecf0994 100644 --- a/src/index.js +++ b/src/index.js @@ -1,2 +1,3 @@ -module.exports = require('./components/Modal'); +import Modal from './components/Modal'; +export default Modal;