网上体育投注

Questions tagged [reactjs]

React (also known as React.js or ReactJS) is a JavaScript library developed by Facebook for building user interfaces. It uses a declarative, component-based paradigm and aims to be both efficient and flexible.

90,458 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
17
votes
0answers
1k views

Where is the documentation for Microsoft.AspNetCore.SpaServices.Extensions?

This page https://docs.microsoft.com/en-us/aspnet/core/client-side/spa-services?view=aspnetcore-3.0 says that Microsoft.AspNetCore.SpaServices and Microsoft.AspNetCore.NodeServices are obsolete and "...
17
votes
3answers
1k views

How can I place Unity WebGL in my React Native app?

I have written a simple React Native app using WebGL. I used https://github.com/JilvanPinheiro/reactive-native-unity-webgl import Unity from 'react-native-unity-webgl'; ... render() { return ( <...
17
votes
1answer
13k views

Why I got error: Cannot query field xx on type “Query”?

Although I copied and pasted the graphQL query from the GraphiQL tool after I tested it at GraphiQL successfully , the query returned with an error when I tried it in Apollo client within a reactJS ...
16
votes
3answers
2k views

Nextjs fails to find valid build in the '.next' directory in production node_env

I am running my app in docker, but my production build and start script fails only in docker environment. Although node_env development works well in docker environment. Here is my script that fails ...
16
votes
2answers
799 views

FontFamily React Native App overwrite with device custom font (Samsung & Oppo)

In React Native, I define font family for all text with Rubik font but for some devices (SAMSUNG & OPPO), the font looks like overwrite with a custom device font because that brand can choose a ...
16
votes
1answer
1k views

Form in card body not visible with NativeBase

I try using below code (a Form inside a Card component) <Card> <CardItem header style={{ backgroundColor: 'lightgray' }}> <Right> <Text>This is Right align text &...
16
votes
1answer
1k views

react with MVC data annotations and unobtrusive validation

We're currently looking to experiment with modern frontend frameworks like react on an MVC4 project. We use data annotations in our models and we have a lot of forms that use unobtrusive validation on ...
16
votes
2answers
2k views

Keep react-router routed-components for all history states

I make a mobile application with Cordova. Use the react-router@2.0.0 + ReactCSSTransitionGroup to implement the "card deck" animation. I have a strict Routes tree without the possibility of circular ...
16
votes
1answer
3k views

How in React native destroy an component instance to avoid memory leak and release underlie views objects of native code?

I want to destroy some component that i have instantiated to release memory. In my current app almost every view that i instantiate and then release it (remove reference to it) doesn't get garbage ...
16
votes
2answers
578 views

JSDoc Tag Support for React HOC (Higher-Order Component)

What is the proper way to document a React Higher-Order Component using JSDoc? There aren't, of course, any React-specific tags built-in - so what would be the proper approach?
15
votes
1answer
1k views

“TypeError: Cannot read property 'pseudoType' of undefined” with chrome-devtools

I'm developing an electron app with React for the front-end. I get the following error in my console when I run my app and hit refresh. My app works as expected, but it's kind of annoying to see this ...
15
votes
0answers
2k views

Jest/Enzyme Class Component testing with React Suspense and React.lazy child component

So I converted an import used in a class component to React.lazy import api and wrapped it in a Suspense tag. When I test that class component, enzyme throws an error "Enzyme Internal Error: unknown ...
15
votes
1answer
324 views

Filtering render functions from CodeClimate method-lines check

We're adding CodeClimate to a project and running into a lot of method-lines errors for the render functions in our React components, e.g. Function render has 78 lines of code (exceeds 40 allowed). ...
15
votes
2answers
1k views

Jest snapshots not matching - Windows vs Unix/Linux Line Endings

We have a project developed by multiple developers on multiple operating systems. We have a character limit in our prettier config set to 120 characters. Our windows machines are producing snapshots ...
15
votes
3answers
2k views

Docker Multi-stage build - Copy failing

I'm having some issues with a multi-stage Dockerfile for an ejected create-react-app. The Dockerfile is listed below: FROM node:9.6.1 as builder RUN mkdir /usr/src/app WORKDIR /usr/src/app ENV PATH ...

15 30 50 per page
1
2 3 4 5
6031