Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
react-queue-router
Advanced tools
React Queue Router is an animation friendly router for React.
The interface is similar to React Router
but you can be more flexible about transition animation.
See the document: https://tokky0425.github.io/react-queue-router/
$ npm install --save react-queue-router
Let's assume you have 3 pages (Top, About and 404) on your web site.
App.jsx
import React from 'react'
import ReactDOM from 'react-dom'
import {QueueRouter, Switch, Route} from 'react-queue-router'
import Top from './Top'
import About from './About'
import NotFound from './NotFound'
const App = () => {
return (
<QueueRouter>
<Switch>
<Route path='/' component={Top}/>
<Route path='/about' component={About}/>
<Route component={NotFound}/>
</Switch>
</QueueRouter>
)
}
ReactDOM.render(<App/>, document.getElementById('root'))
Top.jsx
import React from 'react'
import {useTransition} from 'react-queue-router'
const Top = () => {
useTransition()
return <h1>Hello, React Queue Router!</h1>
}
export default Top
About.jsx
import React from 'react'
import {useTransition} from 'react-queue-router'
const About = () => {
useTransition()
return <h1>Hello, About page!</h1>
}
export default About
NotFound.jsx
import React from 'react'
import {useTransition} from 'react-queue-router'
const NotFound = () => {
useTransition()
return <h1>404 Page Not Found</h1>
}
export default NotFound
For adding transition animation, see Usage of document: https://tokky0425.github.io/react-queue-router/usage/
This project is licensed under the MIT License - See the LICENSE file for details.
FAQs
React Queue Router is an animation friendly router for React.
The npm package react-queue-router receives a total of 0 weekly downloads. As such, react-queue-router popularity was classified as not popular.
We found that react-queue-router 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.