1.0.0 • Published 6 years ago

restore-scroll v1.0.0

Weekly downloads
5
License
FNP
Repository
-
Last release
6 years ago

#Features :

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 :

"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 dhawan.r@fnp.com