Data dodania Pytanie
2017-08-16 13:08 Is ReactJS "clever" when it comes to invoking the render method? »
The render method of this component does use any of the props supplied to the component. Will the component re-render when the props change regardles...
(2) odpowiedzi
2017-08-16 09:08 How to hide ghost image in reactjs drag event? »
I'm using onDrag method in react js. I want to happen drag while i'm dragging the image, but I don't want to show the ghost image. I used css "-webkit...
(1) odpowiedzi
2017-08-16 07:08 React Components - Extending, Customizing and reusing »
We are developing React Components as part of product development. Now we want that other teams can reuse these components and develop something for ...
(0) odpowiedzi
2017-08-15 15:08 Do I *have to* flatten all hierarchical component declarations in React.JS? »
I'm wondering what the canonical method is for creating a dynamic select component in React. Do I have to create a separate component that returns opt...
(2) odpowiedzi
2017-08-15 14:08 Pure ReactJS Components »
Dan Abramov says ...a component is pure if it is guaranteed to return the same result given the same props and state. So if a component is suppl...
(1) odpowiedzi
2017-08-15 01:08 How do I handle multiple calls in one thunk function? »
I don’t know if everybody has read this: https://medium.com/@stowball/a-dummys-guide-to-redux-and-thunk-in-react-d8904a7005d3?source=linkShare-36723...
(3) odpowiedzi
2017-08-14 20:08 React component does not react to mobx observable data »
I am using mobX for my react native project. Please consider this store class: class Birds { @observable listOne = []; @observable fetchingLi...
(1) odpowiedzi
2017-08-14 13:08 Replace array entry with spread operator in one line of code? »
I'm replacing an item in a react state array by using the ...spread operator. This works: let newImages = [...this.state.images] newImages[4] = updat...
(3) odpowiedzi
2017-08-14 10:08 React ES6 array mapping doesn't return anything »
I have an array and i have a simple string value. I want to mapping my array because i'm try to find my string value. I have a code like this, but m...
(2) odpowiedzi
2017-08-13 20:08 mock a function which is used in another function »
I am writing test for my async action in react redux, for sake of addressing just the issue I simplified the code here. Here is my action function: e...
(2) odpowiedzi
2017-08-13 19:08 Why does my small React project respond terribly when the window is resized? »
I have made a small project to learn more about react and have noticed that the view responds very poorly when the window size is changed. I feel i m...
(1) odpowiedzi
2017-08-13 04:08 Is React's setState() guaranteed to create a new state object every time? »
In React, does setState always assign a new object to this.state? In other words, when you call: this.setState({ key1: val1, key2: val2 }); d...
(2) odpowiedzi
2017-08-12 22:08 Can't get a sprite animation running in Pixijs on React »
I am trying to follow along with the Pixijs guide provided here: https://pixijs.github.io/examples/#/demos/animatedsprite-demo.js - and after a bit ...
(0) odpowiedzi
2017-08-12 18:08 What purpose does makeEmptyFunction serve in fbjs? »
I was looking through the React source and stumbled across a requirement with var emptyFunction = require('fbjs/lib/emptyFunction');. I looked at thi...
(1) odpowiedzi
2017-08-12 02:08 Render HTML string in isomorphic React app »
There is non-SPA scenario with sanitized yet random HTML string as an input: <p>...</p> <p>...</p> <gallery image-ids=""/&...
(2) odpowiedzi
2017-08-11 20:08 Module not found: Error: Cannot resolve module 'routes' »
I'm following Cory House's pluralsight course on building React in ES6. Unfortunately I'm stuck on one of the first couple steps, setting up the basic...
(3) odpowiedzi
2017-08-11 12:08 VS17 Resharper Complaining about React.Component »
I have turned on Resharper Ultimate on a .Net Core Web Application that is using TypeScript to code React Components. So I have a simple component cl...
(1) odpowiedzi
2017-08-11 11:08 Why isn't JSX saved as a const rendering »
I am fairly new to React & JSX however I was under the impression that you can save JSX as pretty much anything (var,const, let...). However when...
(4) odpowiedzi
2017-08-10 18:08 prevstate in `this.setState` -- a copy or a reference? »
I've been trying to figure this out for a while and haven't come across the correct answer. In the following code: this.setState(prevState => cou...
(1) odpowiedzi
2017-08-10 13:08 How can I use chart tooltip formatter in react-highcharts? »
how can I use chart tooltip formatter? I am using react wrapper for highcharts. I have config like this: const CHART_CONFIG = { ... tooltip...
(1) odpowiedzi
2017-08-10 00:08 React components not rendering »
I'm building a mini app to get flight dates prices etc using the Ryanair's API. I have a component to conditionally render 2 other components based o...
(1) odpowiedzi
2017-08-09 21:08 Passing props through React-Router v4 <Link /> »
Question: How can I pass a prop or a single value, like an _id, through React-Router's Link component, and catch it at the endpoint? This is what I m...
(2) odpowiedzi
2017-08-09 17:08 Login Security using jsonwebtoken »
I am currently working on a website using React where I want to be able to have user login. Right now my strategy is to send form data to the server (...
(0) odpowiedzi
2017-08-09 12:08 Why official doc recommend to use componentDidMount instead of callback in setState? »
https://facebook.github.io/react/docs/react-component.html#setstate I have seem the official doc says : The second parameter to setState() is an ...
(1) odpowiedzi
2017-08-09 05:08 Avoid image blinking when back button is hit »
I'm developing a web interface with an Instagram-like navigation. This means that I have a grid of pictures and when I click on one of these I go to a...
(2) odpowiedzi
2017-08-08 15:08 Why can't I use "this" in a JSX rendered html element? »
My question is about conditionally rendering in JSX & the use of this. Consider the following code in my React application: render() { retur...
(5) odpowiedzi
2017-08-08 08:08 Make shared component with calling navigation.navigate() inside - React Native »
I want to make shared component for all screen in react native. So I can share them between main components. See my code below, everything works ...
(2) odpowiedzi
2017-08-08 01:08 How to avoid writing the same logic in components having a different layout? »
How can I avoid writing the same code when two components share some same methods but have a different layout? The sample components below have a met...
(2) odpowiedzi
2017-08-07 21:08 Spring + Oauth2 + JWT+ Websocket »
I am doing an example on spring boot + oauth2 + websocket. I am having spring websocket configuration and other code on resource server which is runni...
(1) odpowiedzi
2017-08-07 18:08 csrfToken is only valid after page refresh - Django »
I am running into a weird issue with Django CSRF tokens in my SPA. When I render my application I ensure that the token is set using ensure_csrf_cook...
(2) odpowiedzi
2017-08-07 16:08 React: How to supply callback arrow functions to stateless functional child components? »
I'm struggling to supply a callback function to a stateless functional child component. I have these two components: export const FrontDeskGUI = () =...
(1) odpowiedzi
2017-08-07 11:08 React Native how to render imgs in 5 col layout »
I'm building my first react-native app and am having trouble rendering images inside a 5 col layout built with flex. On web I would make the images re...
(2) odpowiedzi
2017-08-06 21:08 Getting "Warning: setState(...): Can only update a mounted or mounting component." error when setting state inside "FB.Event.subscribe()" function »
I am trying to add Facebook login on my page using the Facebook API. When the user clicks on the Login with Facebook button I want the page to redirec...
(1) odpowiedzi
2017-08-06 13:08 React - setting state to display a message for validation errors in form leads to :Cannot read property 'setState' of undefined - Why? »
I have a signup form and from server side, I check if field is empty, if it is, then I res.send("xxx"), then from fronend I want to set state to a mes...
(1) odpowiedzi
2017-08-06 03:08 Put a conditional statement in my JSX »
<li className=`nav-item {(this.props.activteState===1) ? "active":""}`><a href="#">Main</a></li> ^ This is my code. I want t...
(1) odpowiedzi