React TreeView unselect parent if any child is unselected
Hello I am implementing a one level TreeView with React.
deploy react production build on an alb dns using rule path
In AWS i have an alb setup which will reroute /frontend/* to the frontend target group.
now when iam setting up homepage in package json “/frontend/” it works with development mode.
but when doing it with the production build it is not working.
It was unable to load js css files as the path got messed up in index.html.
When testing on
create react app it was the same problem it doesn’t load the files as the path is incorrect.
When setting the homepage what precautions to take in package.json.
Search function works on desktop but doesn’t on mobile browsers
I’ve solved the REST Countries API challenge from Frontend Mentors. I used React.JS, Bootstrap5, jQuery and Sass. After deploying to GitHub, the search function works well on desktop browsers, but failed to retrieve any results on mobile browsers.
Basic JavaScript syntax-type question which consists of different types of syntax of functions
const onClickButton = (color) => {
}
How to show component only when loaded in react? [closed]
Closed 17 hours ago.
Cannot get setState to work on adding an array
I’m having an issue getting my setState() ‘setSections(data.sections)’ to work. I’m trying to save data locally and is successful, as on reload the loaded data from the previous session is shown in the returned JSON.
React Index/App Components showing in all routed pages
All components of my app.js/index.js pages tend to render in my routed pages. I don’t know how to go about rendering specific components only on the app.js/index.js page.
How to move component to the top of the list when changing its state in React
I am creating my first project in React which essentially is a big list of pictures that are being sorted a specific way (and you can like/dislike them). Data is gathered from an API. I was able to do sorting between routes based on amounts of likes and dislikes and wanted to add a favourite button, which will put the favourited item to the top of the list, but I actually got stuck trying to figure it out. I thought about creating starred
state and change it when user click the star button but sorting mechanism is done in another component.
Reload react page witout changing back to default language using useTranslation()
I am using UseTranslation on my react app, I have swedish and english. Default is swedish. When i change to english the language is being changes as it should but if I reaload the page the language is back to swedish. Is it possible to keep the language if it has been changed when realoading the page?
Need help figuring out how to pass props in React in this exercise from Udemy
okay so here is my app.jsx: