Skip to content

Commit 619249d

Browse files
committed
updated peerDependencies
1 parent e231e48 commit 619249d

File tree

4 files changed

+21
-17
lines changed

4 files changed

+21
-17
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SectionList
2-
[![npm version](https://img.shields.io/badge/npm%20package-0.1.31-green)](https://www.npmjs.com/package/@protonko/section-list)
3-
[![npm size](https://img.shields.io/badge/size-16.4%20kB-green)](https://www.npmjs.com/package/@protonko/section-list)
2+
[![npm version](https://img.shields.io/badge/npm%20package-0.1.32-green)](https://www.npmjs.com/package/@protonko/section-list)
3+
[![npm size](https://img.shields.io/badge/size-16.5%20kB-green)](https://www.npmjs.com/package/@protonko/section-list)
44

55
Component for rendering sectioned lists for plain React.
66
<br>
@@ -78,7 +78,7 @@ The component expects a generic-type <span id="genericT">T</span> that describes
7878
| className | Used to override a component's styles using custom classes. | string | no |
7979
| onEndReached | Called once when the scroll position gets within `onEndReachedThreshold` of the rendered content. | () => void | no |
8080
| onEndReachedThreshold | How far from the end the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. | number | no |
81-
| renderSectionHeader | Rendered at the top of each section. | (title: {title: string, data: [T](#genericT)[]}) => ReactNode | no |
82-
| shouldLoadData | Indicate whether to create an IntersectionObserver. | boolean | no |
81+
| renderSectionHeader | Rendered at the top of each section. | (section: {title: string, data: [T](#genericT)[]}) => ReactNode | no |
82+
| shouldLoadData | Indicated whether to create an IntersectionObserver. | boolean | no |
8383
| ListEmptyComponent | Rendered when the list is empty. | ReactElement | no |
8484
| ListFooterComponent | Rendered at the very end of the list. | ReactElement | no |

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@
66
"list",
77
"section list"
88
],
9+
"repository": "https://github.com/Protonko/section-list",
910
"author": {
1011
"email": "probegrofanston@gmail.com",
1112
"name": "Egor Ermolaev"
1213
},
1314
"private": false,
1415
"license": "MIT",
15-
"version": "0.1.31",
16+
"version": "0.1.32",
1617
"dependencies": {
1718
"core-js": "3.22.8"
1819
},
1920
"peerDependencies": {
20-
"react": "^16.9.0 || ^17 || ^18",
21-
"react-dom": "^16.9.0 || ^17 || ^18"
21+
"react": "^17.0.0 || ^18",
22+
"react-dom": "^17.0.0 || ^18"
2223
},
2324
"scripts": {
2425
"prepublish": "tsc",

src/index.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/index.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from 'react'
2+
import ReactDOM from 'react-dom/client'
3+
import App from './App'
4+
5+
const rootElement = document.getElementById('root')
6+
if (!rootElement) throw new Error('Failed to find the root element')
7+
8+
const root = ReactDOM.createRoot(rootElement)
9+
root.render(
10+
<React.StrictMode>
11+
<App />
12+
</React.StrictMode>
13+
)

0 commit comments

Comments
 (0)