Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
Improve this question
I have created a Estate component and app. Js. in Estate i have 16 Cards Having h5 for titles and p for location and price.
One issue is that my app.js file have the array object and have map function So from there I’m fetching the data in estate through props and objects are also 16 that means Title are also 16 for 16 cards but when I’m putting {props.title } in each Card in estate component The title is same its not different but it should different in each bcoz i have 16 different titles
The Titles should be different in each card H5 tag
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 months ago.
Improve this question
So, in my admin dashboard, I'm calculating the revenue, and I basically have an array with the last two months and their revenue
But when a refresh the page a few times, the elements in the array change and so does the revenue. Btw I'm getting this income from my api.
Also when I'm trying to fetch the revenue for a particular product, for some reason, it fetches the whole revenue.
It's likely that your API gets the data in random order. Check the data you receive from your API. I think the array will have a different order on different requests.
Also, you should post code in code blocks, not images.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm trying to add translations to my next js app, but I have a problem. I get a very heavy translation object from server with 30000 keys to all my app. When I'm passing object through pages props it makes js bundle file bigger because unused translation keys are added too. How can I optimize it?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have created a simple project with two HTML page 'home' and 'details'. I have a spreadsheet of some data I want to show as list in 'home' page and on clicking shows associated details. I tried searching in internet but I was left with even more question than before. The data consist of 10 column and 1000 rows and might reach 5000 rows.
If you are facing trouble while learning DataBase, there is an alternative you can try and it is very easy to understand and implement in your code.
You can learn about JSON (JavaScript Object Notation), Simply you have to create a JSON file in which you can store the detail of all those 1000-5000 rows and render them on your Web page using JavaScript
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm currently learning JS as a project i decided to make a memory game with the function of connecting questions with answers
currently its matching the cards when they share the same image and for my project I need to make pairs of cards with different images
Could anyone give me an alternative to giving values to the cards, I would like to give classes to the cards manually
return card.getElementsByClassName('card-value')[0].src;
Very easy way is to store values/data using data attributes. Here's a quick overview:
https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I've created an AngularJS single page app, which has chat rooms. I want to have, on my main page (index.html), some kind of JavaScript function which will gradually show text boxes of the rooms I have on my app. Like an old screensaver, each text box with a room name will be appearing on the page (in lets say 5 seconds intervals) on a random not occupied location on the background of the screen.
My question is - in UI/UX terms - what is the best way to present new content from lets say an array of data (in my case some texts array), with intervals of 5 seconds (JavaScript timer?), And makes each data appears out of the blue into the screen (CSS animation?).
Not Sure, But I think you want to achieve something like below https://owlcarousel2.github.io/OwlCarousel2/demos/autoplay.html