summaryrefslogtreecommitdiff
path: root/src/main/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/js')
-rw-r--r--src/main/js/package.json4
-rw-r--r--src/main/js/src/test/GameData.js19
2 files changed, 22 insertions, 1 deletions
diff --git a/src/main/js/package.json b/src/main/js/package.json
index fbee6711..d47c5f90 100644
--- a/src/main/js/package.json
+++ b/src/main/js/package.json
@@ -7,7 +7,9 @@
},
"dependencies": {
"react": "^15.4.1",
- "react-dom": "^15.4.1"
+ "react-dom": "^15.4.1",
+ "sockjs-client": "1.1.1",
+ "stomp-websocket": "2.3.4"
},
"scripts": {
"start": "react-scripts start",
diff --git a/src/main/js/src/test/GameData.js b/src/main/js/src/test/GameData.js
new file mode 100644
index 00000000..21b3a077
--- /dev/null
+++ b/src/main/js/src/test/GameData.js
@@ -0,0 +1,19 @@
+import React, { Component } from 'react';
+import logo from '../logo.svg';
+import '../App.css';
+
+class GameData extends Component {
+ constructor(props) {
+ this.props = props;
+ }
+ render() {
+ let cardItems = this.props.cards.map(c => <CardInfo key={c.name} card={c}/>);
+ return (
+ <ul className="App">
+ {cardItems}
+ </ul>
+ );
+ }
+}
+
+export default GameData;
bgstack15