Skip to content

Commit 4e46e95

Browse files
committed
Greet the website visitor with big letters!
1 parent 554115f commit 4e46e95

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"@babel/preset-env": "^7.2.3",
1111
"@babel/preset-react": "^7.0.0",
1212
"babel-loader": "^8.0.5",
13+
"lodash": "^4.17.11",
1314
"react": "^16.7.0",
1415
"react-dom": "^16.7.0",
1516
"webpack": "^4.28.1",

src/app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
import _ from "lodash";
2+
13
import React from "react";
24

3-
export default () => (
5+
export default ({ name }) => (
46
<>
5-
<h1>Welcome to this demo app</h1>
7+
<h1>Welcome to this demo app {_.capitalize(name)}</h1>
68
<p>
79
Check out the pull requests for a demo of the pull request bundle size
810
check that this app is created for.

src/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import { render } from "react-dom";
33

44
import App from "./app";
55

6-
render(<App />, document.querySelector("root"));
6+
render(<App name="visitor" />, document.querySelector("root"));

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2522,7 +2522,7 @@ lodash.debounce@^4.0.8:
25222522
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
25232523
integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168=
25242524

2525-
lodash@^4.17.10:
2525+
lodash@^4.17.10, lodash@^4.17.11:
25262526
version "4.17.11"
25272527
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
25282528
integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==

0 commit comments

Comments
 (0)