Data dodania Pytanie
2017-12-09 08:12 React.js: Parent state values not passing into child properties + Fetch API data cannot be accessed »
I am encountering several issues in a very basic color harmony picker I am developing. I am still a beginner in React and JSX. I initially had it put ...
(2) odpowiedzi
2017-12-09 07:12 javascript array - comparing elements with other elements within the same array »
Am comparing javascript array of elements with other elements within the same array. If elements are same means, i have to give same number for all th...
(3) odpowiedzi
2017-12-09 00:12 Can I call fields from associated model in react components? »
Is there a way to get fields from associated model in react components in rails? I have listing model that I am maping through in react component and...
(1) odpowiedzi
2017-12-08 18:12 Redux-Form v7 Field component typescript errors »
Here's my code where I'm using the Field component: interface EditProfileFormProps extends FormProps { defaults: object; submit: ...
(1) odpowiedzi
2017-12-08 17:12 chrome.downloads.drag() crashes chrome in React »
I'm currently building a chrome extension with React. The functionality I'm having trouble with right now is allowing users to drag a file that the ex...
(0) odpowiedzi
2017-12-08 16:12 how to render a component by string name »
I seem to be unable to render components using name strings. I wanted to be able to dynamically generate component name strings which have existing co...
(1) odpowiedzi
2017-12-08 11:12 React - importing stateless component causing error »
I'm trying to import a stateless component into my app and am getting the following error: App.jsx:13 Uncaught Error: Cannot find module "./compon...
(1) odpowiedzi
2017-12-07 22:12 implement vlookup like function in javascript »
I have an object in my React component's state that looks like this: const elementPositions = { "0": 180.2, "1": 350.8666666666667, "2": 521.5...
(2) odpowiedzi
2017-12-07 20:12 Accessing state of another component in ReactJS? »
I have 2 components, one of them has a state, which I want to access from the other component. class Foo extends React.Component { constructor(pro...
(2) odpowiedzi
2017-12-07 16:12 Accessing a function/state of a component in a wrapping HOC »
So I have a component A (extends React.component) and it is wrapped with a higher order component B. In component B's methods, I need to setState for...
(3) odpowiedzi
2017-12-07 13:12 Cannot access props in Higher Order Component React »
I have a simple class as follows that for the sake of this example just renders out the length of a list loaded from Firebase. class Companies extend...
(0) odpowiedzi
2017-12-06 22:12 Setting up JWT - Passing token from server to client in header, but cannot parse header in client »
I am trying to use JWT for user authentication. The client is a React application with Relay. It is talking to a Rails backend through endpoints serve...
(1) odpowiedzi
2017-12-06 17:12 Using percent ( % ) sign in react-router :id »
I'm trying to use a percent sign in a react-router id. As using % in URI is forbidden, I have to encode my URI manually to be able to use this percent...
(1) odpowiedzi
2017-12-06 17:12 React + Redux: undefined initial state and reducer not called as expected »
I think this is pretty primitive. I'm having trouble with two things: 1.this.props.appState is undefined in the constructor. This is unexpected becau...
(1) odpowiedzi
2017-12-06 12:12 React native-fbsdk unknown issue? »
HI there i am using react native 0.49.5 and react 16.0.0-beta.5 for making App. I am using react native-fbsdk(^0.6.3) for facebook login. All necessar...
(3) odpowiedzi
2017-12-05 16:12 React: render concatenated component based on imported list of components »
I'm not sure if what I'm trying to do is even possible, or if there's a better way to accomplish my goal. Any insight would be massively helpful. Co...
(2) odpowiedzi
2017-12-05 14:12 React, Apollo 2, GraphQL, Authentication. How to re-render component after login »
I have this code: https://codesandbox.io/s/507w9qxrrl I don't understand: 1) How to re-render() Menu component after: this.props.client.query({ q...
(1) odpowiedzi
2017-12-05 06:12 Why React's PureComponent is recommended to have all its children "pure" »
Having read the official React documentation, I've came across this regarding PureComponent: Furthermore, React.PureComponent’s shouldComponentU...
(2) odpowiedzi
2017-12-04 20:12 tips on creating a component library for angular/react components »
I'm trying to head up a potential project at work that would require our company to use components for our projects so that our products will have uni...
(1) odpowiedzi
2017-12-04 14:12 Laravel 5.5 render a React component in a blade view with data from the controller »
My goals is to be able to do something like this in my blade view. <Example name="{{ $user->name }}" /> But this doesn't render anything. ...
(1) odpowiedzi
2017-12-04 10:12 Dispatching clear state action in redux »
I'm using redux in my react project. My question is how to clear state when some works that use state finished. For example, I have search state in m...
(1) odpowiedzi
2017-12-04 06:12 How to cascade specific fields of the object or array to the existing object or array. (JS and React) »
I'm trying to... get the specific field of data from the object in the object set the states with the obtained data at once (if it's possible) Her...
(1) odpowiedzi
2017-12-03 21:12 Uncaught TypeError: Cannot read property 'func' of undefined in reactjs »
I'm Getting the error in browser-console Uncaught TypeError: Cannot read property 'func' of undefined on following line(in bundled js file) Cha...
(2) odpowiedzi
2017-12-03 21:12 ElasticSearch JS and React simple query from the code »
This is what I created for fetching data from React application. Now I want to put all the items (only one in this case) into the JS object, so I coul...
(0) odpowiedzi
2017-12-03 11:12 ReactDOM.render not rendering the component »
I am using nodeJS with react. to install react in my node I used. npm install --save react react-dom This is my index.html file <html> <...
(2) odpowiedzi
2017-12-02 23:12 Is there a reason people prefer using the constructor of a React component instead of componentWillMount? »
I find that using the lifecycle method componentWillMount to setup initial state... componentWillMount() { this.state = { comments: [] }; } ...
(2) odpowiedzi
2017-12-02 23:12 this.props.xxx is undefined while using React with typescript but working properly in ES5? »
Recently I started learning react with ES5 but now trying to use Type script in my app. Can anyone please tell me why I am not able to print ...
(2) odpowiedzi
2017-12-02 20:12 In reactjs, what is wrappedComponent.propTypes? »
Below code example is a simplified version a component. I don't understand the code at the bottom of this component, the Case.wrappedComponent.propTyp...
(1) odpowiedzi
2017-12-02 11:12 composing setState in react with Ramda »
I'm building a react app using Ramda. When the page loads I want to load some data and put it in my state so it looks like this: { "datasets": [f...
(1) odpowiedzi
2017-12-01 19:12 React 16 : componentDidUpdate Warning: Scheduled a cascading update »
I profiled the performance of my application using react redux by following this article by Ben Schwarz. In the user timing section, i get these war...
(1) odpowiedzi
2017-12-01 14:12 Serving REACT component using express is not working (just html file is rendered) »
Hello I am learning MERN stack and I have problem with serving my react component this is server.js code const path = require('path') const fs = requ...
(1) odpowiedzi
2017-12-01 08:12 Given an array of json objects, how do I convert values in each object to an int or float? »
Given an array of json objects, how do I convert values in each object to an int or float? var data = [{ "rank": "1", "name": "Bill" }, {...
(6) odpowiedzi
2017-12-01 07:12 What's difference between two ways of defining method on React Class in ES6 »
I see this a lot in ES6 React code class Foo extends React.Component { bar = () => { console.log("bar") } baz() { console.log("baz"...
(3) odpowiedzi
2017-11-30 13:11 Correct way to handle undefined declaration files (index.d.ts) »
I got following error error TS7016: Could not find a declaration file for module 'react-native-camera'. '/Users/ilja/Documents/Repositories/blok/node...
(2) odpowiedzi
2017-11-30 10:11 Preferred way to bind methods in React Components »
As of November 2017 I know of several ways of binding methods to React Components in order for the this keyword to point to the React Element that own...
(0) odpowiedzi