Questions tagged as 'reactjs'

1
answer

Error in loaders in webpack

I want to set up a project in React from scratch. Launches the following error: ERROR in ./src/js/main.js Module build failed: SyntaxError: Unexpected token (5:4) 3 | 4 | ReactDOM.render( > 5 | <h1>Hello, world!</h1&...
asked by 28.03.2018 / 22:07
1
answer

How to integrate Go's famework with ReactJs?

In a project it is already defined that we are going to use Golang for the Backend and its Siris framwork, but for the Frontend it is going to use react. I have not seen that integration before.     
asked by 22.02.2018 / 00:47
1
answer

Redirection after login in REACT JS

I'm doing a project in React where I have a Login form that makes a search to a Rest API, and that after that, it should go to a new page where there will be a menu. I have managed to make the query to the API, but I can not get the redirection...
asked by 28.08.2017 / 18:36
1
answer

render in a different context in react?

I'm doing a project on react + meteor. The problem is this: I have an object that renders two columns. In the first column (col-lg-4) there is a list of elements. In the second column (col-lg-8) I want to show a graph that must be shown wh...
asked by 12.04.2017 / 20:49
2
answers

Message 'React.createClass is deprecated' when creating a component

I have a Box.jsx component that in turn requires another InputBox.jsx component and all this is rendered in a main.jsx . It turns out that Box.jsx does render but apparently it is not rendering correctly InputBox.js...
asked by 30.05.2017 / 14:57
2
answers

Warning: Each child in an array or iterator should have a unique "key" prop

I can not find where this warning is playing or why, any ideas? import React from 'react'; import logo from '../../../raw-assets/svg/logo.svg'; import line from '../../../raw-assets/svg/line.svg'; import 'whatwg-fetch'; import {back...
asked by 23.03.2017 / 19:18
1
answer

Do a function that makes a request to an api to delete a saved

I would like to know how to make functional, let's say this button, I create a table with a repeater that shows me all the categories that the api returns in json, but in each I have the option to eliminate, to eliminate that category, how can I...
asked by 13.01.2017 / 21:26
1
answer

Use Twig tags with React Js

I'm using Django that uses Twig to render the templates. What I want to do is put an item that Django uses in the React code as follows: var usuario = {{usuario}}; But he will not let me. There is not any kind of tag {verbatim} that canc...
asked by 24.11.2016 / 00:46
1
answer

How to filter in reactJS?

I have a component that is a <select> that shows all the categories, and I would need to make it work, let's say with a reagent to be able to filter the demos by categories. This is the select component import React from...
asked by 17.01.2017 / 19:51
1
answer

Problem when rendering view (react-router 1.0) undefined component

I can not render the view, my code is like the following example server . When I run the server: Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass...
asked by 17.01.2016 / 03:06