Questions tagged [react-spinners]

9 questions
5
votes
2 answers

Allow direct import of files within npm module like lodash

Lodash allows import like import merge from 'lodash/merge'; This reduces the size of the import drastically. I maintain an npm module called react-spinners, and I want to allow the same import. https://github.com/davidhu2000/react-spinners For…
davidhu
  • 9,523
  • 6
  • 32
  • 53
1
vote
1 answer

React loading screen while fetch api

I fetch 5 API in difference Component. I give both 5 API Timeout for 3000 milisecond, so how can i set loading screen for 5 component when the setTimeout are going and make the loading screen gone and return the data when setTimout is done. The…
1
vote
1 answer

PuffLoader, react spinner

in this code PuffLoader was used from react-spinners plugin for loader component code import React from "react"; import { css } from "@emotion/react"; import PuffLoader from "react-spinners/PuffLoader"; const override = css` display: block; …
Muhammad Usman
  • 143
  • 1
  • 6
1
vote
0 answers

Dependency management of outputted UMD files

I'm looking to take an NPM package and output it as UMD so it can be used directly in browser, via a script tag or SystemJS import. The issue I have is that the NPM package is a react-component library, meaning it has dependencies on react and…
davidhu
  • 9,523
  • 6
  • 32
  • 53
0
votes
1 answer

Error: Can't resolve 'react-loader-spinner/dist/loader/css/react-spinner-loader.css'

I am trying to use react-loader-spinner package in my current project Here is the package, but it shows me an error. When I imported (import "react-loader-spinner/dist/loader/css/react-spinner-loader.css";) in the main app.js the error showed in vs…
0
votes
1 answer

React: spinner effect is canceling my scrolling effect

OK guys, so I'm noob in React, and I know that I'm mistaken something, but I can't see what. I put loading spinners between my pages and no problems, until this page : So I have this page that is scrolling on X axe and a logo spinning during scroll,…
0
votes
1 answer

How can I make preLoader size to fill the screen in react, using react-spinner?

I created a preloader in my react page using react-spinner and is working but it is not showing in full screen instead showing in the top left corner without being able to see it properly. import React from "react"; import Header from…
sumitkhatrii
  • 116
  • 2
  • 5
  • 20
0
votes
0 answers

how to solve react spinners unique "key" prop warning?

I am working on react spinners, I am added a simple loader BeatLoader as react-spinners doc say, but i am getting unique "key" prop warning , I know it has not effect my application but it has to solve . import React from "react"; import BeatLoader…
Koushik Saha
  • 357
  • 1
  • 3
  • 11
-1
votes
1 answer

how to set spinner on popup in react js

want to set loading spinner on popup I tried to set spinner but its not working . I'm using functional component approach , all api calls are in popup page so I'm not able to put spinner while all api's gets data in return.