![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
react-scrollspy
Advanced tools
Scrollspy component
$ npm i react-scrollspy
import Scrollspy from 'react-scrollspy'
...
<div>
<div>
<section id="section-1">section 1</section>
<section id="section-2">section 2</section>
<section id="section-3">section 3</section>
</div>
<Scrollspy items={ ['section-1', 'section-2', 'section-3'] } currentClassName="is-current">
<li><a href="#section-1">section 1</a></li>
<li><a href="#section-2">section 2</a></li>
<li><a href="#section-3">section 3</a></li>
</Scrollspy>
</div>
items={ Array }
Id list of target contents.
currentClassName={ String }
Class name that apply to the navigation element paired with the content element in viewport.
scrolledPastClassName={ String }
Class name that apply to the navigation elements that have been scrolled past [optional].
componentTag={ String | React element type }
HTML tag or React Component type for Scrollspy component if you want to use something other than ul
[optional].
style={ Object }
Style attribute to be passed to the generated <ul/> element [optional].
offset={ Number }
Offset value that adjusts to determine the elements are in the viewport [optional].
rootEl={ String }
Name of the element of scrollable container that can be used with querySelector [optional].
onUpdate={ Function }
Function to be executed when the active item has been updated [optional].
offEvent
Remove event listener of scrollspy.
onEvent
Add event listener of scrollspy.
$ git clone https://github.com/makotot/react-scrollspy.git
$ cd react-scrollspy
$ npm i
$ npm run start
Pull requests and reporting an issue are always welcome :)
MIT
FAQs
react scrollspy component
We found that react-scrollspy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.