Skip to content

Commit a836be6

Browse files
committed
first commit
0 parents  commit a836be6

File tree

13 files changed

+11734
-0
lines changed

13 files changed

+11734
-0
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": true,
5+
"printWidth": 70,
6+
}

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# react-intersection-observer-api-example
2+
3+
[![Build Status](https://travis-ci.org/the-road-to-learn-react/react-intersection-observer-api-example.svg?branch=master)](https://travis-ci.org/the-road-to-learn-react/react-intersection-observer-api-example) [![Slack](https://slack-the-road-to-learn-react.wieruch.com/badge.svg)](https://slack-the-road-to-learn-react.wieruch.com/)
4+
5+
A simple application that showcases how [Intersection Observer API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) can be used in React with [createRef()](https://reactjs.org/docs/refs-and-the-dom.html). Use case: observe sections in an article and track the current viewed section in a navigation.
6+
7+
## Installation
8+
9+
* `git clone git@github.com:the-road-to-learn-react/react-intersection-observer-api-example.git`
10+
* cd react-intersection-observer-api-example
11+
* npm install
12+
* npm start
13+
* visit `http://localhost:3000`

0 commit comments

Comments
 (0)