feat: prototype building dynamic react route

This commit is contained in:
endiliey 2018-07-29 02:04:42 +08:00
parent e8e1d5e097
commit b1e785b6c3
6 changed files with 103 additions and 8 deletions

5
lib/theme/hello.js Normal file
View file

@ -0,0 +1,5 @@
const React = require('react');
const Hello = props => 'Hello';
module.exports = Hello;

View file

@ -1,3 +0,0 @@
module.exports = function theme() {
return 'themes';
};

5
lib/theme/layout.js Normal file
View file

@ -0,0 +1,5 @@
const React = require('react');
const Layout = props => 'Layout';
module.exports = Layout;