![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.
nextjs-progressbar-spinner
Advanced tools
Nextjs component for a loading effect between pages using nprogress and react-spinners.
Next.js component for a loading effect between pages mixing nprogress with react-spinners
This component was based on Next.js Progressbar
https://nextjs-progressbar-spinner-demo.vercel.app/
As a study to learn how to create package and distribute modules on npm, and also add some extra configs.
npm i nextjs-progressbar-spinner
Import NextProgressbarSpinner in your pages/_app.js
file or a component inside it:
import { NextProgressbarSpinner } from 'nextjs-progressbar-spinner'
And for rendering add <NextProgressbarSpinner />
to your return()
:
import { NextProgressbarSpinner } from 'nextjs-progressbar-spinner'
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<NextProgressbarSpinner />
<Component {...pageProps} />
</>
)
}
export default MyApp
If no props are passed to <<NextProgressbarSpinner />
, below is the default configuration applied and the spinner is not rendered.
<<NextProgressbarSpinner
NextNProgressProps={
progressBarVisibility = 'visible',
color = '#61DCFB',
startPosition = 0.3,
stopDelayMs = 200,
height = 3,
showOnShallow = true,
}
/>
color
: to change the default color of progressbar. You can also use rgb(,,)
or rgba(,,,)
.startPosition
: to set the default starting position : 0.3 = 30%
.stopDelayMs
: time for delay to stop progressbar in ms
.height
: height of progressbar in px
.showOnShallow
: You can choose whether you want the progressbar to be displayed if you're using shallow routing. It takes a boolean. Learn more about shallow routing in Next.js docs.progressBarVisibility
: in case you dont want to show the progressBar set it to 'hidden'
options = { showSpinner: false }
by default the spinner from nprogress is hidden, if you want it set this prop to true
. Extra options props are linked bellowspinnerTop
and spinnerRight
in case you set the default nprogress spinner to visible you cant set its position with this 2 props<NextProgressbarSpinner
spinnerType="CircleLoader"
spinnerProps={{
size: '2rem',
color: '#61DCFB',
cssOverride: {},
speedMultiplier: 2.5,
height: 5,
width: 5,
radius: 5,
margin: 5,
}}
/>
spinnerType
You can use other configurations which NProgress provides by adding a JSON in options
props.
<NextProgressbarSpinner
NextNProgressProps={{
options: {
minimum: number;
template: string;
easing: string;
speed: number;
trickle: boolean;
trickleSpeed: number;
showSpinner: boolean;
parent: string;: false
},
}}
/>
FAQs
Nextjs component for a loading effect between pages using nprogress and react-spinners.
The npm package nextjs-progressbar-spinner receives a total of 2 weekly downloads. As such, nextjs-progressbar-spinner popularity was classified as not popular.
We found that nextjs-progressbar-spinner 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.