restore-scroll
v1.0.0
Published
Saves your scroll position and on history back restores you scroll positions
Downloads
4
Maintainers
Readme
#Features :
#Basic Usage :
import React,{Component} from "react";
import RestoreScroll from "restore-scroll";
class ReactScrollExample extends Component{
constructor(props){
super(props);
}
render(){
return(
<div onClick={() => this.props.push("/page1")}>
<a href="">Save My Position</a>
</div>
);
}
}
export default RestoreScroll(ReactScrollExample);
#Props :
#Dependancies :
"react": "15.6.2",
"react-router-dom": "4.2.2"
#devDependencies
"babel-cli": "6.26.0",
"babel-core": "6.26.0",
"babel-loader": "7.1.4",
"babel-preset-es2015": "6.24.1",
"babel-preset-es2016": "6.24.1",
"babel-preset-react": "6.24.1",
"webpack": "4.5.0",
"webpack-cli": "2.0.14",
"webpack-polyfill": "^0.1.1",
"webpack-node-externals": "^1.7.2"
#Exnteding behaviour
Make changes in restore-scroll.jsx, later transpile by typing "npm run transpile", with this your changes gets reflected.
#Contact us
You can contact me at [email protected]