I'm trying to render images and each images should be clickable. I tried to write a code below. However, the click events fires when a user access to the component. Can you explain why is it happening?
How to use aframe-react events properly in .map?
205 Views Asked by Munkhtegsh.M Munkhbat At
1
There are 1 best solutions below
Related Questions in AFRAME
- Using WebGPURenderer in A-Frame
- a-frame 1.5.0 envMap with no-lights
- AR motion design exhibition in the real space of the city
- how to add 2d video instead of 3d model in mind-ar by using its scripts?
- I get undefined when I am using js to create a-entity with aframe component
- New to A-frame & HTML Coding - my model won't load, what am I doing wrong?
- how to decompress khr_draco_mesh_compression in a-frame (ar.js)?
- Why are mouseenter and mouseleave startEvents not triggering correctly?
- How do I make the position of a box a variable in Aframe or set the position x, y-10, z?
- How to use threejs version 0.83.0 with aframe version 1.3.0?
- Trouble in using gltf-model in aframe-react
- AFrame and ar.js - custom markers not working
- how to add zoom-in and zoom-out feature in aframe react js
- How can I solve Error in loading marker on worker 404
- 3D Text different positioning across different devices - 8th Wall and A-Frame
Related Questions in AFRAME-REACT
- Trouble in using gltf-model in aframe-react
- How to put a click event on an entity in Aframe in react
- Hoverable Image not displaying in Framer
- Unable to render gltf model with aframe-react and aframe 1.0.3
- react-web-ar - Rendering component containing AFrameRenderer gives Uncaught Error
- How do I correctly represent/scale coordinates from Adobe XD to aframe?
- A-frame-react : how to pass the value when .map()?
- Aframe-React gltf2 model loaded but empty
- Aframe-react how to register and use custom component?
- How to use aframe-react events properly in .map?
- Aframe - events for dragging
- Using Networked-Aframe with aframe-react
- aframe-react; writing new component error
- How to mange memory used by A-Frame?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
When I use a callback function, it worked out!
events={{click: () => this.props.addToCart(item.product_id)}}