Data dodania Pytanie
2017-01-09 16:01 pass state value as props to another component es6 »
I'm able to pass data around but I'm stuck here, how to pass state of AddTodo component to Todos component? Is there anything wrong with my component ...
(0) odpowiedzi
2017-01-09 14:01 inline editing todo list can't change input value »
I think I missed something but don't know what is it, I know value={this.text} will bind the state's value, but since this is inline editing, I want t...
(2) odpowiedzi
2017-01-09 10:01 Using this.setState in the callback of this.setState in React JS? »
Is it possible to call this.setState in the callback of this.setState? I am making a Roguelike Dungeon and have a setup where in the callback of thi...
(1) odpowiedzi
2017-01-08 22:01 why are after a new react-native project lots of deprecation warnings? »
steps to reproduce: installed versions: react 15.4.2 react-native 0.40.0 create a new Project react-native init reactNativeTest Running Project...
(1) odpowiedzi
2017-01-08 16:01 span does not firing OnClick inside list react child component »
I have 2 components when the parent trigger by OnClick the child which has span element doesn't fire OnClick at all. I try it when the parent is butto...
(2) odpowiedzi
2017-01-08 03:01 What is the "..." syntax used in both React and GrahpQL? Is it more general Javascript? »
Trying to understand the connection between the "..." notation in React and GraphQL. Are they 1) Using the same general Javascript syntax? If so, wha...
(1) odpowiedzi
2017-01-07 17:01 Axios API call returning Promise object instead of result? »
Before I start, let me say that I'm new to Javascript and very new to axios API calls, so I'm probably making a rookie mistake... I have this functio...
(2) odpowiedzi
2017-01-07 17:01 Node express server not serving images folder »
When I run my bundled React app on the production server, it can't find my image files and I'm not sure why. I'm fairly sure it's got something to do ...
(1) odpowiedzi
2017-01-07 15:01 Making a typing timer in RxJS; Tracking time spent typing »
This question is an extension of my previous question that you can find here: How to use RxJS to display a "user is typing" indicator? Af...
(2) odpowiedzi
2017-01-07 03:01 It seems there is a RN network inspector tool. Where? »
According to the documention, there is a RN network inspector tool, and "XMLHttpRequest, Fetch and WebSocket are all supported.". Does it works like...
(1) odpowiedzi
2017-01-06 10:01 How to avoid if-statements in typescript-reactjs? »
I have different types of action checks which does different functionalities, simply i made if and else condition to check the action type and do the ...
(2) odpowiedzi
2017-01-06 08:01 Best Practices for NavBar Branding in React-Bootstrap / React-Router-Bootstrap »
There is an issue regarding anchor tags in React Bootstrap and React Router. I was curious on how other people have handled the situation. It is possi...
(1) odpowiedzi
2017-01-06 05:01 When does a component unmount? »
My current understanding is that a component mounts onto the DOM when it is needed to be seen or when the route requires that component. It will also ...
(3) odpowiedzi
2017-01-05 16:01 React - how to determine if component is stateless/functional? »
I have functional/stateless component and component which inherited from React.Component: const Component1 = () => (<span>Hello</span>...
(1) odpowiedzi
2017-01-05 12:01 How to test inner functions defined on Stateless Components in React with Enzyme »
I'm using enzyme to test my react components. I have a stateless component that has an inner function. How can i call and test that inner function? H...
(1) odpowiedzi
2017-01-05 00:01 React expose component function »
Based on the example on this link http://reactjs.cn/react/tips/expose-component-functions.html, I have been trying to simplify the code to understand ...
(2) odpowiedzi
2017-01-04 23:01 Nested routes with react router v4 »
I am currently struggling with nesting routes using react router v4. The closest example was the route config in the React-Router v4 Documentation. ...
(1) odpowiedzi
2017-01-04 22:01 React: Is it possible to call a higher-order component within a container component? »
In my codebase I have a higher-order component (HOC) I use to add all the input validation functionality to a given component. It works great when us...
(3) odpowiedzi
2017-01-04 14:01 Using csurf with react-server »
I would like to add csurf as an express middleware inside the react-server for a universal app. What I want to achieve is adding the csrf token to a ...
(0) odpowiedzi
2017-01-03 08:01 How to Read Respose form a WebAPI in ReactJS »
I'm not able to read the Response in the ReactJS code, but the API Call is returning the proper JSON data with Response Code: 200 My ReactJS code is ...
(1) odpowiedzi
2017-01-03 04:01 What module can strip debugs in webpack solutions? »
I am running a reactjs app with gulp/webpack and tried this: https://github.com/yahoo/strip-loader. However it does not work( throws errors in my rea...
(2) odpowiedzi
2017-01-03 01:01 ReactJs: target.key undefined after method is reached from li rendered by map function »
I'm currently trying to coding a react app that would do the following: - Create a list of questions from an array using a map function. - Making each...
(1) odpowiedzi
2017-01-02 14:01 Link to dynamic active class? »
router for routing purpose in my react app. Mine routing is defined in given manner: <Route path={food/:cuisine/:pageNo} component={foodList} a...
(0) odpowiedzi
2017-01-02 11:01 Using Animated with styled-components (react-native) »
I'm experiencing an error stating following (tested via iOS): Cannot read property 'getScrollableNode' of null While trying to use react-native'...
(1) odpowiedzi
2017-01-02 01:01 why splice not working correctly in react? »
I am trying to delete row from my list using delete button .I do like this if (state.indexOf(action.payload) > -1) { console.log('iff----') ...
(1) odpowiedzi
2017-01-01 17:01 How to deploy MERN project using webpack »
I use the following project which use webpack https://github.com/Hashnode/mern-starter I want to deploy it (to prod) i get error Error: Cannot fin...
(1) odpowiedzi
2017-01-01 11:01 Reusable modal in ReactJs »
I'm trying to create a service which will show a Confirm Dialog and catch user's action (Confirm/Cancel) and can be reusable in any Component with les...
(1) odpowiedzi
2017-01-01 03:01 How can I use an IIFE in the return function of a react component? »
I have a modal page popping up when the user clicks a button, it's working perfectly : render() { return ( <div> <section&gt...
(2) odpowiedzi
2016-12-31 15:12 React Import Icons / Images in bulk »
I have 100's of Icons and Images to be imported. Is there any way to eliminate writing so many import statements at the top of the page? I was thinkin...
(1) odpowiedzi
2016-12-31 06:12 JQuery DataTable select row with checkbox »
I am rendering a JQuery DataTable within a ReactJS application and the table draws fine. However when I try to draw checkboxes they are not drawn. I a...
(1) odpowiedzi
2016-12-31 01:12 React TransitionGroup and React.cloneElement do not send updated props »
I am following Chang Wang's tutorial for making reusable React transitions with HOCs and ReactTransitionGroup(Part 1 Part 2) in conjunction with Huan ...
(1) odpowiedzi
2016-12-31 00:12 ReactJS - Updating parent state when child state is changed »
I apologize for the lack of working code, but I'm not sure how to go about doing this, so non-working code it is. I am looking to update the this.sta...
(1) odpowiedzi
2016-12-30 16:12 Call a method on componentWillReceiveProps based on previous path url »
What I am trying to achieve is the call a method based on previous path url (I am using react-router). Previous path URL looks like http://www.websi...
(1) odpowiedzi
2016-12-30 16:12 Cannot use Arrow functions inside react component class »
I've started a project where i use React JS for the front end an node js in backend. I used webpack for bundling up JS files. i used babel along with ...
(2) odpowiedzi
2016-12-30 05:12 How to do memory management in react-redux? »
As we know that provider will make available all the data stored in store to our application, but I am wondering about the memory because in create st...
(3) odpowiedzi