Data dodania Pytanie
2017-06-16 17:06 Egghead.io Redux tutorial - Lesson 17: "TypeError: Cannot read property 'map' of undefined »
I am following the egghead.io tutorial on Redux. I am on Lesson 17 and getting an error that Dan Abramov isn't. The code is below. The error I am ge...
(1) odpowiedzi
2017-06-16 16:06 Is the ordering of props in JSX important? »
If the o object contains a key/value pair of: foo: 'bar' can I depend on these outcomes?: // foo will be 'bar' <MyComponent foo='should not ov...
(3) odpowiedzi
2017-06-16 10:06 How do I test this async method call in reactjs using mocha »
// Balance.jsx ... updateToken () { const parseResponse = (response) => { if (response.ok) { return response.json() } else { ...
(1) odpowiedzi
2017-06-15 16:06 onPress error "is not a function" and "is undefined" »
Taking my first baby steps towards learning Rect Native, and have been stuck with these errors for a while. When i click item: I get these errors: ...
(2) odpowiedzi
2017-06-15 11:06 How to deploy react js in existing Codeigniter project »
I am using Codeigniter 2.0 Framework. I need to use react type script to load view. I am using Nginx server. How to deploye react js with existing pro...
(0) odpowiedzi
2017-06-15 09:06 Is it ok to have own property in react component? »
class VideoList extends Component { constructor(props) { super(props); this.videoList = props.videos.map((video) => { return &lt...
(3) odpowiedzi
2017-06-14 23:06 React.js - onChange undefined »
I've got the last.fm API working in my app, I'm grabbing related artists. So the idea is you search for an artist and it returns a list of related art...
(2) odpowiedzi
2017-06-14 22:06 React component complaining about SVG gradient styling? »
I am trying to turn an SVG into a react component, so I can use it multiple locations. This is the source <svg height="1000px" width="1000px" cla...
(1) odpowiedzi
2017-06-14 18:06 Preact map array of data »
I am building a component that will list dynamically the next three meeting date. Inside the component, when I console.log the props variable its mapp...
(1) odpowiedzi
2017-06-13 22:06 ESLint "Module build failed" error with eslint-config-airbnb »
I am trying to set up a React project that uses webpack and ESLint with the airbnb config for ESLint. When I try starting up the project with webpack ...
(3) odpowiedzi
2017-06-13 21:06 When should a react component be declared as a function, and not a class? »
I'm unsure of when to declare react components as simple standalone functions as opposed to the regular class myComponent extends Component syntax. To...
(4) odpowiedzi
2017-06-13 10:06 What is the benefit importing React, {Component} instead of just React? »
What is the major benefit of writing import React, { Component } from 'react'; class Link extends Component { ... } instead of import React fr...
(2) odpowiedzi
2017-06-13 10:06 Reflux actions that commit multiple local changes to a remote source »
What's a sustainable, consistent and logical way to deal with Reflux actions that commit a number changes that have only been made locally to a remote...
(0) odpowiedzi
2017-06-12 20:06 React Events Lifecycle »
Does anyone know how to get the onClick event to fire before the onBlur? Using the emulator in Chrome dev tools that is the behavior I see for mobi...
(1) odpowiedzi
2017-06-12 13:06 Using Action/Saga in another Saga »
I have a Saga where I need to do 3 asynchronous requests, then use the responses from the 3 requests in a follow-up request. Here's some psuedo-code t...
(1) odpowiedzi
2017-06-12 07:06 React is rendering [object object] rather than the JSX »
I'm trying to render out journal entries on my site with an object (not array) and I am running into an issue, here is my current code populateJou...
(4) odpowiedzi
2017-06-11 22:06 Checkbox state not changing based on redux state »
I have a dumb component which takes in a bunch of objects and renders a Checkboxes. The dumb component looks something like this: // imports const F...
(1) odpowiedzi
2017-06-11 05:06 How to detect if screen size has changed to mobile in React? »
I am developing a web app with React and need to detect when the screen size has entered the mobile break-point in order to change the state. Specific...
(2) odpowiedzi
2017-06-11 01:06 Initializing state in constructor versus state »
What is the difference between those two ways to set initial state in ES6 besides the access to the props? constructor(props) { super(props); ...
(1) odpowiedzi
2017-06-10 10:06 ReactJS: Why is onChange the prefered way to handle input changes? »
Almost in every ReactJS tutorial or even in the official documentation for handling input changes, onChange is recommended. We use a state for the val...
(2) odpowiedzi
2017-06-10 03:06 Why <Route component={Menu}/> instead of <Menu />? »
I have a submenu with Routes in my /About. This submenu is called AboutMenu and is present at all pages under /About like => /About/Company and /About...
(1) odpowiedzi
2017-06-10 02:06 Flexbox to fill available space not working inside React.js component »
I am trying to set up a simple flexbox layout with content that expands between header and footer, based on this example. It works fine when I put the...
(1) odpowiedzi
2017-06-09 16:06 jQuery doesn't fire on first click but does on second »
$(document).ready(function() { $('#talents li').on('click', 'div', function(event) { event.stopPropagation(); $(event.target).ad...
(1) odpowiedzi
2017-06-09 15:06 ReactJs/Redux Invariant Violation: Could not find "store" in either the context or props of "Connect(LoginContainer)" »
Not sure why I'm getting this error, it happened when I added connect from redux to my Login component, so I could connect my store. FAIL src/com...
(3) odpowiedzi
2017-06-09 14:06 Cancel a promise when a component is unmounted in ReactJS »
I've a component named "Item" which creates and calls a promise when it has been mounted. class Item extends React.Component{ constructor(props){...
(0) odpowiedzi
2017-06-08 22:06 How do I make my React state update immediately? »
The function I've made which purpose is to update state does not work perfectly. I make a deep copy of my current state which I modify, then I set t...
(2) odpowiedzi
2017-06-08 14:06 Apollo (GraphQL) fetch more than one element in a query »
Can I fetch more than one element in a GraphQL query? I have many products list data and I want to fetch, for example, three products in my component....
(2) odpowiedzi
2017-06-08 11:06 How to get the exact error message of JsDoc in reactjs? »
We are using JsDoc to create our document of reactjs pages. All comment we wrote as per the jsDoc rule but still it showing below message for so...
(1) odpowiedzi
2017-06-07 18:06 De-duplicating redux action logic with high order reducers »
I'm refactoring a React/Redux app that has been built to a point where there is a need to de-duplicate a lot of reducer logic. I've looked into High O...
(2) odpowiedzi
2017-06-07 08:06 Why use spread operator in Redux store? »
In this tutorial, why is there a spread operator before createStore? const configureStore = () => { const sagaMiddleware = createSagaMiddleware(...
(1) odpowiedzi
2017-06-07 08:06 Why do you need to import React multiple times in parent and child components? »
If you have a parent component file that already imports React, why does any of its rendered children files also need to import React? Is it just a sa...
(1) odpowiedzi
2017-06-06 17:06 React Router changing params doesn't fire componentWillRecieveProps »
The Problem: Changing the parameters of a <Route /> component does not update the component it is rendering. The route change is shown in the UR...
(1) odpowiedzi
2017-06-06 17:06 Using own React npm component - appropriate loader issues »
I have made a component in my React app that I would like to publish to NPM. It's consists of just one file index.js import React from 'react' import...
(1) odpowiedzi
2017-06-06 15:06 User profile in isomorphic applications »
I'm currently in the process of adding login, plus a set of advanced features related to login, to a website using React, Redux, Express and Node. For...
(1) odpowiedzi
2017-06-05 18:06 Content in between Header/Footer »
I'm building a site where each page has a <TopNav>, <Footer> and a <Subfooter>. As I understand it, the entry point of the app, sh...
(1) odpowiedzi