File tree Expand file tree Collapse file tree 4 files changed +53
-52
lines changed Expand file tree Collapse file tree 4 files changed +53
-52
lines changed Original file line number Diff line number Diff line change 2
2
3
3
- Removed support for depecrated ` extraAriaContext ` (please use ` ariaLabelBuilder ` instead)
4
4
5
+ ## >= 8.1.3
6
+
7
+ - Support React 18 (see: https://github.com/AdeleD/react-paginate/issues/423 )
8
+
5
9
## >= 8.1.2
6
10
7
11
- Excluded unnecessary files from package (see: https://github.com/AdeleD/react-paginate/pull/410 )
Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
- import ReactDOM from 'react-dom' ;
2
+ import { createRoot } from 'react-dom/client ' ;
3
3
import PropTypes from 'prop-types' ;
4
4
import ReactPaginate from 'react-paginate' ;
5
5
import styled from 'styled-components' ;
@@ -172,7 +172,8 @@ export class App extends Component {
172
172
}
173
173
}
174
174
175
- ReactDOM . render (
176
- < App url = { 'http://localhost:3000/comments' } author = { 'adele' } perPage = { 6 } /> ,
177
- document . getElementById ( 'react-paginate' )
175
+ const container = document . getElementById ( 'react-paginate' ) ;
176
+ const root = createRoot ( container ) ;
177
+ root . render (
178
+ < App url = { 'http://localhost:3000/comments' } author = { 'adele' } perPage = { 6 } />
178
179
) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-paginate" ,
3
- "version" : " 8.1.2 " ,
3
+ "version" : " 8.1.3 " ,
4
4
"description" : " A ReactJS component that creates a pagination." ,
5
5
"main" : " ./dist/react-paginate.js" ,
6
6
"repository" : {
24
24
"prop-types" : " ^15.6.1"
25
25
},
26
26
"peerDependencies" : {
27
- "react" : " ^16 || ^17"
27
+ "react" : " ^16 || ^17 || ^18 "
28
28
},
29
29
"devDependencies" : {
30
30
"@babel/core" : " ^7.15.8" ,
42
42
"jest-cli" : " ^27.3.1" ,
43
43
"jquery" : " ^3.6.0" ,
44
44
"prettier" : " ^2.4.1" ,
45
- "react" : " ^17.0.2 " ,
46
- "react-dom" : " ^17.0.2 " ,
45
+ "react" : " ^18 " ,
46
+ "react-dom" : " ^18 " ,
47
47
"react-hot-loader" : " ^4.13.0" ,
48
48
"serve-static" : " ^1.14.1" ,
49
49
"styled-components" : " ^5.3.3" ,
You can’t perform that action at this time.
0 commit comments