365体育投注网

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.

86,029 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
20
votes
1answer
2k views

React Native Webview with openlayers

I have seen this info: http://stackshare.io/stackups/leaflet-vs-mapbox-vs-openlayers I'm developing at the same time a web application with react using OpenLayers. And I have to make the same app on ...
18
votes
0answers
1k views

How to test custom async/await hook with react-hooks-testing-library

I created a custom react hook that is supposed to handle all less important api requests, which i don't want to store in the redux state. Hook works fine but I have trouble testing it. My test setup ...
17
votes
0answers
2k views

Tabs with FlatLists inside ScrollView - like Instagram or Twitter profile pages

I would like to have a set of tabs that each have a FlatList inside a ScrollView. This is similar to the layout of Instagram or Twitter. I am aware that there are some issues with having a FlatList ...
17
votes
1answer
833 views

Using React within a dynamically loaded es module

I have been loading a native ES Module which can be simplified to src/test.tsx: export default class Test { constructor() { console.log('loaded'); } } I can load this in my browser ...
16
votes
0answers
243 views

jest-haste-map: Haste module naming collision

On our project, we have react-native installed in two workspaces (root folder and libraries folder for testing purposes). This throws the typical error "jest-haste-map: Haste module naming collision" ...
16
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 http://github.com/JilvanPinheiro/reactive-native-unity-webgl import Unity from 'react-native-unity-webgl'; ... render() { return ( <...
16
votes
1answer
12k 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
2answers
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
1answer
715 views

FontFamily React Native App overwrite with device costum 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 ...
15
votes
1answer
294 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

How to do Batch Mutations with Apollo Client

I try to use ApolloClient 2.1 with the new Mutation Component. Simple use cases are working but now I have something more complex. What I want to achieve is to query data and put them in a list, ...
15
votes
2answers
5k views

Remove unused css with React and Webpack

I'm trying to remove unused css classes from my app using purify-css for WebPack. To build this project I'm usin React, scss, WebPack and PostCss to build and compile everything. So far I was able ...
15
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 ...

15 30 50 per page
1
2 3 4 5
5736