Skip to content
Advertisement

Tag: jsx

React page rendering blank with event listener functions

Having an issue with my code, causing the page to render blank. New to react so any help would be appreciated. I’ve scoured SO to try and find an answer but haven’t found anything that seems to work. I’m aware the syntax for react is incorrect in the functions causing the issue, just looking for some help! Thank you in

How Can I render Two-dimensions-Array in JSX (React Native)?

I am coding Two-dimensions-Array in ReactNative. Single-Array is successful in JSX. But I do not get how to use Two-dimensions-Array in JSX. Can we use Two-dimensions-Array in JSX ? Rendering is successful Rendering is nothing (my question) myDoubleArray is Two-dimensions-Array like this. Answer You do not return a value from the outer map function. So, the product of it is

react js : children style doesn’t show

I tried to create a component ‘Card’ and use it like a container. the code work well without ‘card’. when I tried to add it the ‘Card.css’ and expense-item in ExpenseItem.css doesn’t work this is ‘ExpenseItem.js’: this is ‘Card.js’: and this is ‘Card.css’: and finally this is ‘ExpenseItem.css’: Answer You need a space between card and the class name in

how can I display a list of contacts with name, age, location, and phone props in react? my code does not display anything

there are three components namely; AddPersonForm, PeopleIst, and ContactManager AddPersonForm is a form with the text field and add button and uses state to manage the value of the text field PeopleList is a list of contacts and receives an array representing the contacts and renders a list on the page ContactManager includes the AddPersonForm and PeopleList as child components

Advertisement