skip to Main Content

Reactjs – includes is not a function

I'm trying to create a "permissions of a role" screen. Here is the sample code : import React, { useEffect, useState } from "react"; import { Form, Checkbox, Collapse, Row } from "antd"; function RolePermissions() { const [permissions, setUsersPermissions] =…

VIEW QUESTION

Javascript – Output List in JSX

I am trying to output a HTML list in JSX. Here is how I build the array: let seasonsList = []; for (var i=0; i < jsonData.data.campaigns.list.length; i++) { seasonsList.push(<li key={i}>{jsonData.data.campaigns.list[i].name}</li>); } When I try to output this list I…

VIEW QUESTION
Back To Top
Search