Data dodania Pytanie
2017-07-23 01:07 Rendering an array of objects React »
Good afternoon, I am trying to display data that is provided to my application by an instance of MongoDB before the initial render. I have yet been s...
(3) odpowiedzi
2017-07-22 14:07 How to design component layout reasonable in React? »
I have two options in below. What should I choose? Option 1: in Header.jsx: <div> <Logo /> <Menu> <MenuItem&gt...
(3) odpowiedzi
2017-07-22 11:07 React Native: Android activity go back »
I implemented android native module from Bambora SDK and displayed its native view(activity) by getCurrentActivity().startActivity(intent); It works ...
(1) odpowiedzi
2017-07-22 05:07 Passing array value from one class to another »
I am new to ReactJs and the issue that I am having is that the array value is not being displayed on the body class App extends React.Component{ re...
(5) odpowiedzi
2017-07-21 16:07 react kendo grid client side paging not working »
We are using React and Kendo: kendo-ui-core": "^2017.2.621 kendo-ui-react": "^0.14.2 react-kendo": "^0.13.11 trying to get a pageable grid to displ...
(0) odpowiedzi
2017-07-21 13:07 Dispatch Redux action after React Apollo query returns »
I'm using React Apollo to query all records in my datastore so I can create choices within a search filter. The important database model I'm using is...
(1) odpowiedzi
2017-07-21 06:07 React Modal Does Not Close In Between Loading Content »
I'm using this react modal plugin: https://github.com/reactjs/react-modal and I need to show an array of objects in the modal on page load. When the f...
(3) odpowiedzi
2017-07-20 20:07 Where to store text input state with presentational and container components? »
Using the presentational and container components that Dan Abramov has previously discussed , I have a presentational component which has an input and...
(3) odpowiedzi
2017-07-20 17:07 C# Web API Error 404 on POST »
I am getting an error 404 when I try and so a post on my web api and i'm not sure why i'm getting it the url and everything are correct. http://10.0....
(1) odpowiedzi
2017-07-20 15:07 Why are callbacks created and used by a component commonly added to props? »
In ReactJS components I frequently see callbacks corresponding to UI events (eg. onFormSubmit) being added to the props object via the connect library...
(2) odpowiedzi
2017-07-20 13:07 Event propagation with React bubbling out of order »
Given the following code I would expect a printout of 3, 2, 1 when clicking the number 3. Actual printout is 1, 3, 2. What is the reason for this? ...
(1) odpowiedzi
2017-07-19 23:07 How to distinguish between user types when authenticating with JWT »
In my app (Mongo,Express,Node,React), I'm currently authenticating users from the client to the server using JSON Web tokens. However, I want to be ab...
(2) odpowiedzi
2017-07-19 22:07 The price of rendering elements using D3 in a React application? »
I'm trying to understand how to integrate D3 and React. Specifically I'm trying to understand how using D3 to render visualizations impacts React. As ...
(1) odpowiedzi
2017-07-19 21:07 SCSS files not compiling to CSS in react using Webpack »
Following is my folder structure & Files for React project which is working fine but I am unable to add CSS through SCSS via Webpack using extract...
(1) odpowiedzi
2017-07-19 13:07 error in ajax(can't read property of undefined) while implementing react infinite scroll »
I am trying to implement infinite scroll in react js by repeating the same set of data a certain number of times and adding an event listener scroll t...
(0) odpowiedzi
2017-07-18 23:07 How to create a password input with fabric ui react? »
There is a TextField input in fabric ui, but I have not found a way to create a password field for a login form. Edit: I tried using the 'type' att...
(2) odpowiedzi
2017-07-18 18:07 How to invoke a prop directly? »
I am tryng to invoke a props function directly this.props.setAuth(); , but it doesnt seem to work :/ TypeError: Cannot read property 'props' of un...
(1) odpowiedzi
2017-07-18 14:07 splice in Immutability Helpers »
Please tell how can I write the same but without indexes before splice. Is it possible? var a = [[1,2,3],[1,2,3],[1,2,3],[1,2,3]]; let c = update(a...
(1) odpowiedzi
2017-07-17 21:07 What is the difference between passing data in this way to properties in React? »
I have seen these ways to pass data to properties: <Header headerText={'Authentication'} /> <Header headerText="Authentication" /&gt...
(2) odpowiedzi
2017-07-17 17:07 How to wait for data in redux »
For example I have 2 components. In 1st I do async call on server and after dispatch action to put response in to redux store. In 2nd component I want...
(1) odpowiedzi
2017-07-17 16:07 Syntax of arrow functions »
const fetch = url => dispatch => { // ... } export const fetchQuestions = tag => (dispatch) => { return dispatch(fetch(tag)); }; Wh...
(4) odpowiedzi
2017-07-16 22:07 Rendering multiple buttons with onClick function in React »
I am trying to render multiple buttons in react using map but i am getting an errors. var NameArray = [{"name":"number0"},{"name":"number1"},{"na...
(1) odpowiedzi
2017-07-16 08:07 How to clear uncontrolled field in react »
I used to use ref for forms but now I always state for forms, I'm facing an issue where I have to clear a field after user submitted something. handl...
(2) odpowiedzi
2017-07-16 02:07 Why does adding callbacks in terms of a prop, execute the function immediate after component renders? »
Im developing a simple 'to do list' react app (new to React.js). I have adding items to a list working but deleting items raises a question. Within...
(3) odpowiedzi
2017-07-15 20:07 Why set property equal to itself in DOM render - React.js »
consider this block of code from http://facebook.github.io/react/docs/lists-and-keys.html function ListItem(props) { // Correct! There is no need t...
(1) odpowiedzi
2017-07-15 16:07 React-Google-Maps: Marker resizes after zooming »
I am using "react-google-maps" https://github.com/tomchentw/react-google-maps in my React project. To illustrate my problem please find below two pic...
(0) odpowiedzi
2017-07-15 02:07 Partial Password Masking on Input Field »
So I need to mask a SSN# input field, lets say the ssn is 123-45-6789, I need to display ***-**-6789 (real time as they enter each digit) but I still ...
(2) odpowiedzi
2017-07-14 19:07 react vr border not working »
I want to put a border around my text. <View style={{ borderRadius: 1, borderWidth: 1, borderColor:'#FF0000',}}> <Text style...
(1) odpowiedzi
2017-07-14 14:07 Using Jest to assert a function is called from within another function »
I have a component in React with an onChange event. In the code below, I need to assert that the correct method is called when this.props.onChangeIm...
(1) odpowiedzi
2017-07-14 00:07 Performance improvement to React Text Clamp? »
I'm trying to make a reusable React text-clamp component. The user passes in the number of lines to render and the text they want to display, and the ...
(2) odpowiedzi
2017-07-13 20:07 Display a <li> in reverse order in React project using inline CSS »
I have a react project that uses messaging, so I want the most recently added message to be displayed on the bottom. I've tried the 'reversed' propert...
(1) odpowiedzi
2017-07-13 15:07 react-native - can't access setState inside component function »
I'm learning react-native and now I'm stucked on state lesson with this error: _this2.setState is not a function. Here's the current block of code....
(2) odpowiedzi
2017-07-13 11:07 React, Using Refs to scrollIntoView() doen't work on componentDidUpdate() »
I'm using Redux in my app, inside a Component I want to scroll to an specific div tag when a change in the store happens. I have the Redux part workin...
(0) odpowiedzi
2017-07-12 18:07 How to clearTimeout an async function when componentWillUnmount in a Reactjs component? »
Here is the component: class ChartComp extends Component{ constructor(props){ super(props); this.timer = null; this.loadD...
(2) odpowiedzi
2017-07-12 10:07 How minChunks in CommonsChunkPlugin affect the custom css style rendering? »
React CSS style is rendering later than custom CSS style, which is somehow dependent on minChunks. new webpack.optimize.CommonsChunkPlugin({ name...
(0) odpowiedzi