Basic templating tests
Showing
7 changed files
with
33 additions
and
5 deletions
... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
4 | "description": "", | 4 | "description": "", |
5 | "main": "index.js", | 5 | "main": "index.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | "start": "webpack-dev-server --port=5000", | 7 | "start": "webpack-dev-server --port=8010", |
8 | "test": "echo \"Error: no test specified\" && exit 1" | 8 | "test": "echo \"Error: no test specified\" && exit 1" |
9 | }, | 9 | }, |
10 | "author": "", | 10 | "author": "", |
... | @@ -16,6 +16,8 @@ | ... | @@ -16,6 +16,8 @@ |
16 | "babel-preset-react": "^6.24.1", | 16 | "babel-preset-react": "^6.24.1", |
17 | "external-jsx-loader": "^1.1.0", | 17 | "external-jsx-loader": "^1.1.0", |
18 | "html-webpack-plugin": "^2.30.1", | 18 | "html-webpack-plugin": "^2.30.1", |
19 | "react": "^16.2.0", | ||
20 | "react-dom": "^16.2.0", | ||
19 | "react-templates": "^0.6.1", | 21 | "react-templates": "^0.6.1", |
20 | "react-templates-loader": "^0.6.3", | 22 | "react-templates-loader": "^0.6.3", |
21 | "webpack": "^3.10.0", | 23 | "webpack": "^3.10.0", | ... | ... |
src/containers/app.js
0 → 100644
1 | import React from 'react' | ||
2 | import HomeView from '../views/home.rt' | ||
3 | import InputView from '../views/input.rt' | ||
4 | |||
5 | class App extends React.Component { | ||
6 | render() { | ||
7 | const {message} = this.props | ||
8 | return ( | ||
9 | <HomeView message={message} input={<InputView />}/> | ||
10 | ) | ||
11 | } | ||
12 | } | ||
13 | |||
14 | export default App |
src/views/input.rt
0 → 100644
1 | <div>Input <input></div> |
-
Please register or sign in to post a comment