Questions tagged as 'reactjs'

0
answers

Return to React complex structure with objects and arrays Nested Map

Hello friends, some capo that can help me, I tell you; I receive this data with this structure of an API, how could I render the errors? map, foreach ??? It is an object that contains an array with errors, that array receives objects that at...
asked by 09.03.2018 / 14:58
0
answers

ServiceWorker does not recognize config in Incognito

I'm using this service worker, and the problem is that on line 79, it seems that incognito inside registerValidSW () the config parameter is not arriving const isLocalhost = Boolean( window.location.hostname === 'localhost' ||...
asked by 08.03.2018 / 17:29
1
answer

Translate React JS without Node

The question is simple, there is some way to translate my site to another language (from Spanish to Portuguese for example) as it could be done with this library but without installing Node and migrating the entire App made to it? In case y...
asked by 14.02.2018 / 20:45
1
answer

authenticate with express + react + redux?

Can someone recommend me what is the best way to authenticate with express + react + redux? I'm not sure if I use passport or json token? who has been able to protect api with express!     
asked by 12.12.2017 / 20:53
1
answer

Functional Components in React

I have a Square.js file that contains a function: function Square(props) { <button className="square" onClick={props.onClick}> {props.value} </button> } that would come the functional component that I want to use...
asked by 16.10.2017 / 16:37
1
answer

How can I add a static or fixed Navbar to a component in React with Meteor

I have seen that being able to apply a fixed navbar can be applied with 'Scrollspy' of bootstrap, I found an example on this page link but when doing it with my component it is not seen in the same way, is my component the js file as I can imp...
asked by 09.10.2017 / 23:49
1
answer

How to show an alert with 10 minutes left of a specific time

I currently have the following code: let start_date = ''; var now = new Date(); let validation_date = ''; const $topleft = $(this.refs.topleft); const message_popup = result.map(item => { if (mom...
asked by 02.10.2017 / 21:58
2
answers

How do I make it so that it can not be written in the datepicker?

I am programmed to react and I am using a datepicker that I found on the internet and install it. The problem is that I do not want to be able to write the date in the input, only that the user can select the date through the calendar. For this...
asked by 16.09.2017 / 04:01
1
answer

Pass data from firebase firestore to React JS library "react-table"

I need to pass information from firestore (the new firebase DB) to the react-table library (datable library), it is easy to pass information through .map to some or another element that is repeated according to the number of items contained in...
asked by 15.11.2017 / 23:38
1
answer

How to organize the Redux store of a Sidebar?

How the states of a Sidebar can be managed in the Redux store when it is active, opens or closes, stops being focused, etc ...     
asked by 31.08.2017 / 20:09