Skip to content

Commit 20d1273

Browse files
committed
Pointed samples to actual version of the library
1 parent 1081e3d commit 20d1273

File tree

12 files changed

+61
-26
lines changed

12 files changed

+61
-26
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,12 @@ Location: https://github.com/microsoft/redux-micro-frontend/tree/main/sample
9292

9393
Instruction for running Sample App
9494
1. Go to sample/counterApp and run `npm i` and then `npm run start start-component`
95-
2. Go to sample/todoAoo and run `npm i` and then `npm run start start-component`
95+
2. Go to sample/todoApp and run `npm i` and then `npm run start start-component`
9696
3. Go to sample/shell and run `npm i` and then `npm run start`
97+
4. Browse http://localhost:6001
98+
99+
## Documentation
100+
[See Github wiki](https://github.com/microsoft/redux-micro-frontend/wiki)
97101

98102
## Appendix
99103
- To learn the basics for Redux check for [official documentation of Redux](https://redux.js.org/) - https://redux.js.org/.

sample/counterApp/package-lock.json

Lines changed: 21 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sample/counterApp/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
"start-component": "webpack serve --config ./webpack.config.mf.js"
3333
},
3434
"private": false,
35-
"dependencies": {
36-
},
35+
"dependencies": {},
3736
"devDependencies": {
3837
"@babel/cli": "^7.12.1",
3938
"@babel/core": "^7.12.3",
@@ -50,6 +49,6 @@
5049
"webpack-dev-server": "^3.11.0",
5150
"react": "^16.14.0",
5251
"react-dom": "^16.14.0",
53-
"redux-micro-frontend": "file:../../lib"
52+
"redux-micro-frontend": "1.0.0"
5453
}
5554
}

sample/counterApp/src/appCounter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ export class AppCounter extends React.Component {
5656
<div>
5757
<Counter count={this.state.global} header="Global Counter" increment={this.incrementGlobalCounter} decrement={this.decrementGlobalCounter}></Counter>
5858
<Counter count={this.state.local} header="Local Counter" increment={this.incrementLocalCounter} decrement={this.decrementLocalCounter}></Counter>
59-
<h1>
59+
<h2>
6060
Todo Counter
61-
</h1>
61+
</h2>
6262
<span>{this.state.todo}</span>
6363
</div>
6464
)

sample/counterApp/src/counter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export class Counter extends React.Component {
44
render() {
55
return (
66
<div>
7-
<h1>{this.props.header}</h1>
7+
<h2>{this.props.header}</h2>
88
<span>{this.props.count}</span>
99
<button onClick={this.props.increment}>+</button>
1010
<button onClick={this.props.decrement}>-</button>

sample/shell/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
</head>
66

77
<body>
8+
<h1>MF 1 - Counter App</h1>
89
<div id="counter"></div>
10+
<hr />
11+
<h1>MF 2 - Todo App</h1>
912
<div id="todo"></div>
1013
</body>
1114
</html>

sample/shell/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sample/shell/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"dependencies": {
3535
"react": "^16.14.0",
3636
"react-dom": "^16.14.0",
37-
"redux-micro-frontend": "file:../../lib"
37+
"redux-micro-frontend": "1.0.0"
3838
},
3939
"devDependencies": {
4040
"clean-webpack-plugin": "^3.0.0",

sample/todoApp/package-lock.json

Lines changed: 21 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sample/todoApp/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
"start-component": "webpack serve --config ./webpack.config.mf.js"
3333
},
3434
"private": false,
35-
"dependencies": {
36-
},
35+
"dependencies": {},
3736
"devDependencies": {
3837
"@babel/cli": "^7.12.1",
3938
"@babel/core": "^7.12.3",
@@ -50,6 +49,6 @@
5049
"webpack-dev-server": "^3.11.0",
5150
"react": "^16.14.0",
5251
"react-dom": "^16.14.0",
53-
"redux-micro-frontend": "file:../../lib"
52+
"redux-micro-frontend": "1.0.0"
5453
}
5554
}

0 commit comments

Comments
 (0)