• Register

Recent questions tagged reactjs

0 votes
1 answer 3 views
Problem : print: entry, ":cfbundleidentifier", does not exist
asked 1 day ago Shovo210 2.1k points
0 votes
1 answer 9 views
Problem: yarn' is not recognized as an internal or external command, operable program or batch file.
asked 5 days ago Lucky Guy 1.4k points
0 votes
1 answer 5 views
Problem I am newbie in REACT and I have a task to develop an SPA. The API is already done. But when I run npm run start And REACT starts its DEV server I am getting an Cross Origin Error trying access the API URLs
asked 6 days ago alexh 2.4k points
0 votes
1 answer 12 views
Problem: yarn' is not recognized as an internal or external command.
asked Feb 16 Ethan ross 1.8k points
0 votes
1 answer 11 views
Problem syntax error: adjacent jsx elements must be wrapped in an enclosing tag.
asked Feb 11 charles mathews 3.8k points
0 votes
1 answer 11 views
I have the following index.js file: const React = require('react'); let App = React.createClass({ render: () => { return ( <div> Hello,this is jsx! </div> ); } }); module.exports = App; This code renders the following HTML: <!DOCTYPE html> ... [as engine] (/Users/xinhengs/Desktop/QunarDevs/qact/server/node_modules/express-react-views/index.js:46:32) Please help me figure out what&rsquo;s going on.
asked Jan 23 khaled 280 points
0 votes
1 answer 42 views
Here is a code example showing how to use hooks: import { useState } from 'react'; function Example() { // Declare a new state variable, which we'll call "count" const [count, setCount] = useState(0); return ( <div> <p>You clicked {count} times</p> <button onClick={( ... the following installed packages "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" Any explanations and fixes to this?
asked Jan 23 khaled 280 points
0 votes
1 answer 11 views
I want to know how to pass data from child component to its parent in ReactJS? Here is my child component: export const SelectLanguage = React.createClass({ getInitialState: function(){ return{ selectedCode: '', selectedLanguage: '', }; }, handleLangChange: function (e) { ... you have any idea what I&rsquo;m doing wrong? Please never mind the json file as it has nothing to do with the problem.
asked Jan 14 khaled 280 points
0 votes
1 answer 27 views
Problem: The expected scenario out of the following pieces of code is that when I click on the button feature I will be redirected to the &lsquo;/&rsquo; route, i.e the index route. However I get this error message: can not read property push of undefined. Can you help me out? route.js import React from " ... react": "^0.14.7", "react-dom": "^0.14.7", "react-router": "^2.0.1", "history": "^2.0.1",
asked Jan 10 khaled 280 points
0 votes
2 answers 7 views
Problem: I want to know how can I get input field value on button click in react, I have a react class component that looks like this: var MyComponent = React.createClass({ handleClick: function() { if (this.refs.myInput !== null) { var input = this.refs.myInput; ... text input" onClick={this.handleClick} /> </div> ); } }); ReactDOM.render( <MyComponent />, document.getElementById('container') );
asked Jan 10 khaled 280 points
0 votes
1 answer 12 views
How to pass value from one component to another component in ReactJS?
asked Oct 10, 2020 sikandar 2.4k points
0 votes
1 answer 14 views
What is the difference between node js and react js?
asked Oct 10, 2020 sikandar 2.4k points
0 votes
1 answer 459 views
Problem: I have recently started learning about React, Babel, JSX and JS. Now I am receiving an error from a babel if I tried to compile my JSX code into a JS code. Please find the error: &ldquo;Jsx value should be either an expression or a quoted jsx text.&rdquo ... out in my searching on interenet that prop values should be passed only between {}, but adding these to my code did not help me.
asked Aug 13, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 90 views
Problem: I am right now using the react-google-invisible-recaptcha. However it is not working for me during the page load it shows the following message: "Cannot contact reCAPTCHA. Check your connection and try again." Please Note: I have the broadband internet connection which is very fast. Please let me know how can I use the invisible-reCAPTCHA and overcome the existing problem.
asked Jul 23, 2020 Raphael Pacheco 4.9k points
1 vote
1 answer 62 views
Problem : I am very new to ruby-on-rails and reactjs. I have recently joined a new project. If I try to iterate through my variable mybadges and try to display each badge then I face below error : Each child in an array or iterator should have a unique "key" prop. ... error but was unable to fix it. So now I am looking for ruby-on-rails and reactjs expert who can help me in fixing above error.
asked May 4, 2020 stewart 4k points
1 vote
2 answers 215 views
Problem : I am beginner to the monaca. Currently I am trying to install the monaca with the use of below command. npm install -g monaca But I am facing below errors after executing above command: npm WARN checkPermissions Missing write access to /usr/local/lib/ ... /lib/node_modules' } I am struggling with above error from past couple of days. Can somebody help me in fixing above monaca error?
asked Mar 27, 2020 morrisBson 3.2k points
0 votes
2 answers 334 views
Problem : I am trying to learn React JS. I have written a code for component . I also have the data that I get from a Data Base, and whose current state (myDB) I dispatch.I am trying to use data from myDB object and then want to display some of the ... a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons How to fix this issue ?
asked Feb 22, 2020 mphil 2.3k points