Data dodania Pytanie
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
2016-12-29 22:12 Serve one app path with React and serve other paths with EJS »
Currently my express app renders all paths with EJS. I'd like to replace one path in particular to render with React on the client side. That particul...
(0) odpowiedzi
2016-12-29 19:12 What to look out for when putting React into an EJS application »
I have been coding my app in node/express/ejs, now I am going to start to build the rest of it in React/JSX/Webpack. Is there anything I need to know ...
(0) odpowiedzi
2016-12-29 15:12 When using React Is it preferable to use fat arrow functions or bind functions in constructor? »
When creating a React class, which is preferable? export default class Foo extends React.Component { constructor (props) { super(props) thi...
(2) odpowiedzi
2016-12-29 12:12 React.js - "this" undefined even after binding »
I am trying to capture onChange event of the input and calling setState with the new value, but as soon as I type in the input I get: Uncaught TypeE...
(1) odpowiedzi
2016-12-29 09:12 Why can't I push values in my state array in react.js? »
I can add 1 item to the array it logs ["50"] in the console. But when I try to add a second value I get this error "currentScores.push is not a functi...
(5) odpowiedzi
2016-12-28 19:12 Is there a way to use React Components within Elm? »
I know that using Elm components ("modules"? still learning parlance) within React is an established pattern with libraries like react-elm-components,...
(2) odpowiedzi
2016-12-28 17:12 Focus input after redux dispatch finished »
I am dynamically creating list of inputs with React and Redux. After clicking a button an input is added to the end of list. I need to focus last adde...
(3) odpowiedzi
2016-12-28 04:12 react-native-router-flux warning: Key is already defined »
The following is the Android log output when the React Native app is started for a while before disconnecting it from the Meteor (DDP) server by killi...
(1) odpowiedzi
2016-12-27 15:12 Error: Uncaught ReferenceError: React is not defined »
Overview I am trying to use Babel and Webpack to build a React app. I know I could use create-react-app but I'd like to learn how these technologies ...
(3) odpowiedzi
2016-12-27 12:12 react native - redux state cause performance issues »
I am new in both React native and redux. While I am working with React native and redux, I realize that state in redux store cause the component rende...
(1) odpowiedzi