Questions tagged as 'react'

0
answers

How to run webpack + ReactJS without node.js on client-side?

Is it possible to run the webpack transpiler on the client side without installing and running it on a Node.js server? Currently I am trying to implement a SPA application using React 15.1.0 integrated with Babel-core 5.8.23. But my server-si...
asked by 24.07.2017 / 08:31
1
answer

Build calendar with React

I have a question on how to analyze the number of days a month for a given calendar, I have to set up a "nav" with the weekly days of each month, but the problem is when I arrive on the last day of the month, adds to 32,33,34 ... I would like so...
asked by 18.07.2017 / 15:27
1
answer

Switchcase made for REACTFLUX is not taking the right case

Why are not you getting the action.type? ends up in default. The log is saying "editing" which is the default case rather than creating a new article. The code handleActions(action) { switch (action) { case action.type === Ac...
asked by 11.07.2017 / 13:51
1
answer

Static routes do not react to two pages of different content

The situation is as follows, when creating an app with the react + webpack I have an html file, it is an index.html that loads a bundle.js (default webpack) to be displayed in the browser, but my app needs has the following structure, it has a s...
asked by 05.07.2017 / 04:17
1
answer

Connect Flask Restless API to React (Admin-on-rest)

I'm learning to work with flask and react to create a rest API (with flask-restless) and a Client (with React, Admin-on-rest). I've already created Api in Flask with Reastless. I am looking for some advice to connect the API to the client, bu...
asked by 20.06.2017 / 12:29
0
answers

Retrieve data from firebase

I'm creating an application with react and I currently need to retrieve some data from database using the firebase library, so I've created a module that performs the configuration: File: firebase.js import fireb...
asked by 17.06.2017 / 21:00
0
answers

Calling a function after rendering a component in React.js

I'm making a game of the old one in React.js that uses the Minimax algorithm to produce AI's moves. This algorithm, from what I've seen, is taking between 600ms ~ 1000ms to return a move in the early stages of the game. This time would be no pro...
asked by 11.05.2017 / 21:51
1
answer

Dynamic Javascript Imports

Hello, I need to dynamically import the paths to the assets of an application, for example: var cliente = clienteX import ../../caminho/${cliente}/caminho/arquivo.less It will not be changed at runtime, it would just pull...
asked by 28.03.2017 / 15:42
1
answer

ReactJs - How to run AJAX calls?

I'm developing a project in React (the first time I'm working with React ) and I'm having doubts when running calls to the server, either GET or POST . I even managed to perform this task, but in a somewhat "limited"...
asked by 01.04.2017 / 21:10
1
answer

Deploy React in Heroku

Good morning, I did a deploy of a react app on heroku, but it is totally without css. I need a help because I have no idea what it can be.     
asked by 24.02.2017 / 12:52