POC for better module import syntax

This commit is contained in:
James
2018-08-13 12:21:55 -04:00
parent ae5a469cd2
commit 256f9fe5b4
6 changed files with 36 additions and 48 deletions

View File

@@ -0,0 +1,9 @@
import React from 'react';
const Test = () => {
return (
<h1>Test</h1>
);
};
export default Test;

View File

@@ -0,0 +1,7 @@
import React from 'react';
export default () => {
return (
<h1>Test2</h1>
);
};

View File

@@ -0,0 +1,7 @@
import Test from './Test';
import Test2 from './Test2';
export {
Test,
Test2
};