Ralph Virtucio Posted on Aug 25, 2020 How will I use my props array in react? Do you have a example for forEach() Thank! Top comments (2) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Peter Vivo Peter Vivo Peter Vivo Follow Pipeline operator and touch bar fanatic from Hungary. God speed you! Location Pomaz Education streetwise Work full stack developer at TCS Joined Jul 24, 2020 • Aug 25 '20 Dropdown menu Copy link Hide props is object, try to debug this one: import React from 'react'; import {render} from 'react-dom'; const DebugProps = props => <pre>{JSON.stringify(props, null, 2)}</pre>; render ( <main> <DebugProps foo={[2,3,4]} /> <hr /> <DebugProps>2-3-4</DebugProps> </main> , document.body ) Collapse Expand Ralph Virtucio Ralph Virtucio Ralph Virtucio Follow Location Philippines Joined Aug 11, 2020 • Aug 26 '20 Dropdown menu Copy link Hide Thanks I'll try ! Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
props is object, try to debug this one:
Thanks I'll try !