POC for better module import syntax
This commit is contained in:
9
src/client/components/Test.js
Normal file
9
src/client/components/Test.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
|
||||
const Test = () => {
|
||||
return (
|
||||
<h1>Test</h1>
|
||||
);
|
||||
};
|
||||
|
||||
export default Test;
|
||||
7
src/client/components/Test2.js
Normal file
7
src/client/components/Test2.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<h1>Test2</h1>
|
||||
);
|
||||
};
|
||||
7
src/client/components/index.js
Normal file
7
src/client/components/index.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import Test from './Test';
|
||||
import Test2 from './Test2';
|
||||
|
||||
export {
|
||||
Test,
|
||||
Test2
|
||||
};
|
||||
Reference in New Issue
Block a user