# react-go-top **Repository Path**: redspite/react-go-top ## Basic Information - **Project Name**: react-go-top - **Description**: A tiny animate go top component - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-03-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Install ```jsx npm i react-go-top or yarn add react-go-top ``` ## Usage ```jsx import Gotop from 'react-go-top'; document.getElementById('app')} /> ``` ## API ```jsx imgSrc string "" 组件里箭头的图片链接 style object null CSS样式 target func ()=>window 监听滚动事件的父节点 visibilityHeight number 400 滚动条距顶多少 显示回到顶部按钮 onClick func callback 点击回到顶部后的回调函数 ```