Skip to main content

All Questions

Tagged with
10,010 questions with no upvoted or accepted answers
5 votes
2 answers
9k views

How to download the complete html page in JS/React-Native?

So I am trying to download a complete HTML page in a React-Native app , so that the user can view the page later when they are offline too. I am rendering the page using WebView and it works without ...
krishnanspace's user avatar
5 votes
0 answers
796 views

Remove inline styles from Create React App

I am working on a React application which is built using Create React App. I am having some trouble with CSS in my application. The CSS in dev mode is not consistent with CSS in production mode. Some ...
darKnight's user avatar
  • 6,199
5 votes
2 answers
6k views

Type 'CSS StyleDeclaration' is not assignable to type 'CSS Properties'

I am working in react with typescript, and trying to write a module that grabs the style object from a DOM element and passes it as the style property into a new JSX element. Something like this: &...
Jeremy Gottfried's user avatar
5 votes
0 answers
1k views

Get position of scrolled div and detect which element is scrolled to

I want to build a little module with react. Inside that module I have a scrollable element with scroll-snap-points-y: repeat(40px); scroll-snap-type: y mandatory; so it stick to the one of elements ...
Alexandr Accord's user avatar
5 votes
0 answers
3k views

Having trouble to use justify-content: space-between; in react-bootstrap

My problem is that justify-content: space-between seems doesnt work in my code. import React from 'react'; import {Button, Navbar, Nav, NavDropdown} from 'react-bootstrap'; import '../styles/...
Sean Liu's user avatar
  • 1,475
5 votes
0 answers
1k views

React-Native: Load external CSS file in WebView

I'm planning to use a WebView in my current React-Native project which shall render a HTML page with some pictures and an external CSS file. Other solutions I've found used an already existing string ...
Earendil's user avatar
5 votes
2 answers
5k views

Why is window.print giving duplicate pages?

I'm trying to print a modal dialog in a React component. When the component that is under the modal takes up more than 1 page, the printing of the modal is duplicated for each page. Since the div ...
Michael Witt's user avatar
  • 1,692
5 votes
1 answer
13k views

How to make background-image responsive in Material UI

I'm trying to fix a problem with my background-image when I resize the browser. I have the background-image height on my application set to '100vh' which fills the entire page. When I resize the ...
learnerforlife's user avatar
5 votes
0 answers
449 views

avoid redundant sass imports in webpack3 client bundle's

I am having a problem, that the common sass styles in my reactjs project end up redundantly in the client bundle… 1) I have a set of base styles: /src/frontend/sass/ base.scss the master file, ...
Frank N's user avatar
  • 10.2k
5 votes
1 answer
1k views

3rd party Javascript and CSS files in Webpack. Strange behaviour

I am using the MERN stack. I had to use a 3rd party html admin template which has a lot of standard js and css files (jquery, bootstrap, datatables etc.). To integrate it with react, I created a "...
Arlind's user avatar
  • 434
5 votes
0 answers
2k views

React-Image-Gallery Resulting in Buggy Behavior

I've been trying to implement the react-image-gallery from this npm package. While I'm able to get a few sliding images to work, whenever I click quickly on the next arrow button it pops up to the ...
Dog's user avatar
  • 2,828
5 votes
0 answers
1k views

How do I enable code completion and intellisense for inline CSS in WebStorm?

When working on CSS files in WebStorm, intellisense will operate on both the property name (bringing up a list of possible properties when I start typing) and property values (showing be the possible ...
Brian H.'s user avatar
  • 2,185
5 votes
1 answer
2k views

How to tune the margin in victory?

Below is a general victory code. <svg viewBox={viewBox}> <VictoryPie standalone={false} width={width} height={height} data={data} ...
liam xu's user avatar
  • 3,000
5 votes
0 answers
1k views

How to add material UI theme to React Table?

I have a table implemented using React Table(https://react-table.js.org) Functionality wise its fast and displays data, but it has its own default styling. I want to implement Material design theme ...
SeaWarrior404's user avatar
5 votes
1 answer
2k views

Next.js - React SSR Cannot find module './page.scss' when rendering on the server (client side rendered works fine after saving the file)

When you're using the create-react-app package you're able to have .scss-files compiled into .css-files as you type in them. You can then do import './Header.css'; in your React component files and ...
MHD's user avatar
  • 1,330

15 30 50 per page
1
3 4
5
6 7
668