Questions tagged [reactjs]
React is a JavaScript library for building user interfaces. It uses a declarative, component-based paradigm and aims to be both efficient and flexible.
271,625
questions
-1
votes
0answers
12 views
How to re-render the same component on React?
Well I am making this weather app with the use of an api. So, first I have to show the weather of a default city. Then when I select the other cities, the component will render again to give me the ...
0
votes
0answers
5 views
How do I make a CSS grid with styled components that changes size based on props?
I would like to make a grid that will change reactively based on its props. What I get right now is just one column for everything...
Thanks for your help.
This is what I have:
return (
<&...
0
votes
0answers
12 views
Adding function in script in react js
Being new in react I am trying to add a function in script, however its giving error } unexpected
How can I add function in react
import React from "react"
import PropTypes from "prop-...
0
votes
1answer
9 views
Validate Select in reactjs
I'm developing an application in React.JS
I need to be able to validate the Select before it is sent or checked in the insert function.
The code:
const App = () => {
const [item, setItem] = ...
0
votes
0answers
8 views
How to fix an error “CODE NOT FOUND” in Vercel?
I tried to deploy my app to Vercel (create-react-app starter). It was deploy successful, no errors in console or my vercel account. But when i clicked a link, i have this message:
404: NOT_FOUND
Code:...
0
votes
0answers
4 views
How can I customize the Icons of react-jinke-music-player
I am using an audio player package named react-jinke-music-player, I want to customize the icons of this package. If any one used this package please, share your thoughts.
Here is the package link: ...
0
votes
0answers
8 views
Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider
I'm getting this strange error when I'm importing Overlay from 'react-native-elements'. So I've tried some solutions like deleting yarn lock file, removing react-native-safe-area-context from package....
0
votes
1answer
16 views
Change the state of progressBar using React Context
I am trying to implement React Context on this small example.
I have a Progress bar on one of the components and a Toggle context on another componenet.
I have Implemented the context but the code ...
-1
votes
0answers
15 views
function parameter not get value inside jsx [closed]
function Map({ contries, center, zoom }) {
return (
<div className="map">
<MapLeaflet center={center} zoom={zoom} scrollWheelZoom={false}>
<TileLayer
...
-1
votes
0answers
15 views
I am failing to copy an image file from my downloads folder into my react app public folder
I am using vscode on Kali linux operating system.
The error I get is
cp: cannot create regular file '/............./public': No such file or directory.
Anyone with an idea on how to solve this?
-5
votes
0answers
22 views
How can I edit a text with React Native? [closed]
How can I edit a text with React Native?
<Text style={styles.text}>
N° tel: {this.state.numero_BPI}
</Text>
<Text ...
0
votes
0answers
7 views
Babel “traverseVerifyNodeType” error when running sitemap script
I created a script to generate a sitemap for a react application using react-router-sitemap.Installation of the babel dependencies went smooth. But when I ran the script I created, I get this error.
...
0
votes
0answers
6 views
React Google Charts Candlestick colors and wicks not displaying
I am trying to implement the React Google Charts candlestick charts, and I am plugging in my own data into the charts but when the charts are displayed, the candlesticks are all being displayed in one ...
0
votes
3answers
36 views
use axios.patch with a nested JSON
There's a nested JSON object defined in the server side code of the website that I'm working on, like this:
userinfo:{
first_name,
last_name,
profile:{
avatar, //here is the field I ...
0
votes
2answers
27 views
React: how to run a function on any navigation?
I have a search box on navbar (react-bootstrap navbar). I need to clear the value on any navigation or routing. How do I do that?
Navbar is a class component. sorry for adding this now.
search box ...