Skip to content

Commit e4a7da8

Browse files
committed
first version with hooks
1 parent 3dad8e7 commit e4a7da8

16 files changed

+16825
-118
lines changed

.gitignore

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# See https://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

33
# dependencies
44
/node_modules
5+
/.pnp
6+
.pnp.js
57

68
# testing
79
/coverage
@@ -11,8 +13,11 @@
1113

1214
# misc
1315
.DS_Store
14-
.env
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
1521
npm-debug.log*
1622
yarn-debug.log*
1723
yarn-error.log*
18-

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"printWidth": 70,
6+
}

.travis.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: node_js
2+
3+
node_js:
4+
- stable
5+
6+
install:
7+
- npm install
8+
9+
script:
10+
- npm test

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# react-local-storage
22

3-
[![Slack](https://slack-the-road-to-learn-react.wieruch.com/badge.svg)](https://slack-the-road-to-learn-react.wieruch.com/)
3+
[![Build Status](https://travis-ci.org/the-road-to-learn-react/react-local-storage.svg?branch=master)](https://travis-ci.org/the-road-to-learn-react/react-local-storage) [![Slack](https://slack-the-road-to-learn-react.wieruch.com/badge.svg)](https://slack-the-road-to-learn-react.wieruch.com/) [![Greenkeeper badge](https://badges.greenkeeper.io/the-road-to-learn-react/react-local-storage.svg)](https://greenkeeper.io/)
44

5-
Showcase on how to use the native `localStorage` of the browser to enable caching in React. Read more about it in [this tutorial](https://www.robinwieruch.de/local-storage-react/).
5+
Showcasing how React works with local storage. [Read more about it.](https://www.robinwieruch.de/local-storage-react/)
66

77
## Installation
88

9-
* `git clone [email protected]:rwieruch/react-local-storage.git`
10-
* `cd react-local-storage`
11-
* `npm install`
12-
* `npm start`
13-
* visit http://localhost:8080/
9+
* `git clone [email protected]:the-road-to-learn-react/react-local-storage.git`
10+
* cd react-local-storage
11+
* npm install
12+
* npm start
13+
* visit `http://localhost:3000`

0 commit comments

Comments
 (0)