Data dodania Pytanie
2017-04-12 00:04 React prop-types error »
I'm trying to create web app in codepen. I'm using React, ReactDOM. All was fine. But when I added react-router-dom to my project, I got an error: re...
(2) odpowiedzi
2017-04-11 18:04 Identity Server 4 Social Login for SPA »
I'm working on application using a Web API(asp.net core) and a SPA (react-boilerplate). I'm starting work in user registration/login and one of the re...
(1) odpowiedzi
2017-04-11 15:04 React Navigation: How to update navigation title for parent, when value comes from redux and gets updated in child? »
I'm using react-navigation and have a StackNavigator with a ParentScreen and a ChildScreen. Both screens have the same navigation bar with a dynamic...
(0) odpowiedzi
2017-04-11 15:04 filter by multiple array by matching object properties »
It's easy to get rid of unmatched object property by single value, like const person = [ {name:'james',gender:'male'}, {name:'john',gender...
(3) odpowiedzi
2017-04-11 02:04 ReactTestUtils has been moved »
I'm starting learning React and while I was doing some tests i noticed two warning messages: Warning: ReactTestUtils has been moved to react-dom/t...
(1) odpowiedzi
2017-04-10 17:04 Render HTML from a json string in react »
I'm trying to render an HTML object from a JSON string that I'm receiving from an API. I'm able to get the string to render to HTML successfully but i...
(3) odpowiedzi
2017-04-10 10:04 Handle response - SyntaxError: Unexpected end of input »
I tried a ReactJS fetch call to a REST-API and want to handle the response. The call works, i get a response, which i can see in Chrome Dev Tools: fu...
(2) odpowiedzi
2017-04-10 04:04 React/Redux reducer returned undefined during initialization »
I'm working on my first React/Redux project. Everything was going fine, and then I tried to create a new reducer. I thought it was a pretty simple one...
(2) odpowiedzi
2017-04-09 19:04 React-router-dom v4 nested routes not working »
In reference to the unresolved question (as a final conclusion) Multiple Nested Routes in react-router-dom v4 How to nest routes in React Router v4...
(2) odpowiedzi
2017-04-09 15:04 Understanding how ReactJS and NodeJS app can work »
I'm trying to learn React JS, but I have difficulties understanding how it should work with NodeJS, let's say with Express. So far I understand that ...
(1) odpowiedzi
2017-04-09 08:04 Accessing PropTypes via the main React package is deprecated »
I'm using redux but when I run my code I have this error: Accessing PropTypes via the main React package is deprecated. Use the prop-types packa...
(2) odpowiedzi
2017-04-09 03:04 How to call parent function from child prop React 15.5.0 »
Hello I was trying to pass function to child class and call it from the child class but the problem it show the the function is undefined Cannot r...
(1) odpowiedzi
2017-04-08 22:04 How to determine the cause of 500 error »
I'm using IIS Express and an ASP.NET Core application I made. In my most recent changeset I start getting Failed to load resource: the server respond...
(1) odpowiedzi
2017-04-08 13:04 Type checking with react v15.5. React.PropTypes is deprecated »
When I go to React documentation page I see that now there is no guide about typechecking with PropTypes. Then I open guide about react context and I ...
(2) odpowiedzi
2017-04-08 09:04 upload file to server side failed with ajax »
I'm using react dropzone component (https://github.com/felixrieseberg/React-Dropzone-Component) to upload an image to server. The server script is wor...
(0) odpowiedzi
2017-04-08 03:04 Disable React.createClass and PropTypes deprecated warnings in babel react present »
At latest React 15.5.1 package, If using babel react present to resolve jsx file, will appears following warnings: Warning: Accessing PropTypes via t...
(5) odpowiedzi
2017-04-07 18:04 React - How do I give each child component a unique ref? »
I have a parent component that renders one of several child components: class Parent extends React.Component { ... render() { const activeChi...
(0) odpowiedzi
2017-04-07 12:04 Is store.dispatch in Redux synchronous or asynchronous »
I realize this is basic question but I had no luck finding the answer elsewhere. Is store.dispatch synchronous or asynchronous in Redux ? In case it...
(2) odpowiedzi
2017-04-07 12:04 Good practice to pass Action creators to functional components in a react-redux app? »
I've converted most of my containers to functional components to make them reusable and I'm wondering if it's good practice to pass Action Creators ...
(1) odpowiedzi
2017-04-06 17:04 Using redux best practice with promises »
export function postRegister(credentials) { console.log(credentials); return dispatch => { return fetch('/user/register', { ...
(2) odpowiedzi
2017-04-06 08:04 Javascript require vs require .default »
I'm using react-hot-loader and I'm very confused about its example code: import React from 'react' import ReactDOM from 'react-dom' import { AppConta...
(1) odpowiedzi
2017-04-06 06:04 Why can’t I render data from this object ? How can I? »
I have a component "Form". I also have some data that I get from my mongoDB DB, and whose state (myData) I dispatch. So in the Form component, I have...
(1) odpowiedzi
2017-04-05 16:04 What are the differences between Apollo Client and Relay? »
I have just been introduced to GraphQL and am deciding between the two frameworks (Apollo and Relay) for implementing my front end React web app. I'm...
(1) odpowiedzi
2017-04-05 16:04 How to dynamically modify the values inside an array according to a length of a string? »
I have an array passcodeArray: [null, null, null, null], and a variable passcode: '', and I want the index of the array to behave dynamically b...
(2) odpowiedzi
2017-04-05 00:04 What is flat bundling and why is Rollup better at this than Webpack? »
I have recently been looking into rollup and seeing how it differs from Webpack and other bundlers. One thing I came across was that it is better for ...
(1) odpowiedzi
2017-04-04 22:04 Using Typescript Definitions Files from Definitely Typed with Older Version of Typescript »
I've been working on a project using Typescript 1.8.10 with React and Redux. I've been trying to incorporate a couple of third party React component l...
(1) odpowiedzi
2017-04-04 14:04 Express sending custom props to React causing props to flash and disappear upon render »
I have a server.js file that should get some data from the server and save it in an object called customP. To make things easier for now I'm playing a...
(0) odpowiedzi
2017-04-04 12:04 Runtime exception when trying to use listenAndPromise from reflux-promise »
We have an existing ReactJs application, written in TypeScript. The application is not in production yet. Recently I updated all referenced NPM packag...
(0) odpowiedzi
2017-04-04 11:04 React-Typescript Hello World »
I am trying to Hello World React with Typescript. I wrote the code below. This code works when I use method 1, but throws error on method 2 Method 1 ...
(1) odpowiedzi
2017-04-03 14:04 What is difference between react-router 4.0, react-router-dom and react-router-redux? »
I am implementing routing in react-application, but now I confused between the advantage of react-router 4.0 over react-router-redux, I am also confus...
(2) odpowiedzi
2017-04-03 13:04 getting Warnings and console.error in each test cases in jest »
I am using react native development and using jest for testing . and my cases my all are test cases passing but getting this error . console.error no...
(1) odpowiedzi
2017-04-03 01:04 if else statement in map function reactjs »
You don't have to read the whole code, just read the comment in the editQuantity function and in showOrderItem function, specially in the showOrderIte...
(1) odpowiedzi
2017-04-02 15:04 Redux persist rehydrate previous auth state too late »
I have setup routes that are meant to be authenticated to redirect user to login page if unauthenticated. I have also setup redux-persist to auto dehy...
(2) odpowiedzi
2017-04-02 06:04 Wait on all promises in a simulate call »
I am using Jest and Enzyme to test React components. My React component (under test) has a remote select component. When the user types some text, da...
(1) odpowiedzi
2017-04-02 02:04 How does mobx prevent rerender children of observable components? »
I've found mobx observable component only rerender themselves and not their children. How is this achieved? ...
(1) odpowiedzi