I want to know if it's possible to comment a block of code inside the render () method in React, I've tried all the ways I know and none of them worked.
render() {
return (
<div className="Events">
<div className="Ev...
I have a component that loads a list of components <ComponenteReordenavel> that is rearranged according to the user's taste. The bug happens when I modify the style of this component and reorder again, the style always...
I want the audio to repeat every time the button is pressed. Instead, it only repeats after the audio finishes.
(NOTE: I'm using JSX)
Javascript
playShot() {
var audio = document.getElementById('shot');
audio.play();
}
HTML
<...
When I try to run dev-server it returns me an error in the console that I can not identify what is generating it
webpack.config.js
iconst path = require('path');
module.exports = {
entry: './src/app.js',
output: {
path: path.join(__dir...
I created a component that has six images but when compiling my code I get the following error.
AndthisismysourcecodefortheImovelPhotoscomponentimportReactfrom'react';functionImovelPhotos(){return(<divclass="col s12 m3 l3">
<...
How to pass information between components in React as props or status.
In this situation I have a button and a menu. The menu must be opened every time the button is clicked.
Button
import React, { Component } from 'react';
import './Na...
I'm having a problem and have tried several ways to solve it ... I need to get the value of the child element and pass it to the parent.
Within this form, I have these plus and minus buttons (if there is no shorter than this, it puts an X)....
Good afternoon!
I made a function that searches the data of a JSON on the Web, but wanted to wrap it in a function that would take longer than for example 10 seconds to explode an error on the screen, currently the page is only blank, it only...