what is the difference between ReactJS convert rn in this two way and why?
Can someone tell me why, thank you Is it because one is a text node and another is a variable
Can someone tell me why, thank you Is it because one is a text node and another is a variable
So I'm trying to convert a markdown file and send it over a rest API, and render it in the frontend. The problem is that the newlines, and other things get lost while trying to convert it back. How do…
I have installed lit package via npm, then i replaced my-element.ts file with my own .ts file and also updated the package.json file with the new .ts file Error details `import { LitElement,html,css } from "lit"; import { customElement, property…
I'm currently working on displaying item. But im stuck because the data structure is super nested. This is the original structure: [ { "key": "name", "value": "Johnweak", "title": "name", "type": "input" }, { "key": "lastname", "value": "weak", "title": "lastname", "type":…
I am trying to iterate through my state via .map(), but the function stops after the first return: private renderEmployeesTable() { if (this.state.employees) { return new Array(this.state.employees).map((_, index) => { const employeeId: string | undefined = this.state.employees[index]?.employeeId; const employeeName: string…
When I click a delete button, a prompt will come up. The prompt works well but somehow it is displaying a weird [object Object], [object Object]. I want it to be such that, when the prompt comes up it refers…
I've looked up for hours and I just can't find any solution for my problem. I'm developing an app that uses react context and I'm also using react-router-dom to navigate through my pages. This context file, has a initial state,…
I'm in little bit confusion in my code. I have an array, let arr = [{id:"225",name:"jin"}, {id:"226, 228",name:"villy"}, {id:"225",name:"lil"}, {id:"202,236,289",name:"kill"}] I stored an ID in a variable called testid. I want to filter my array "arr" which holds the "testid".…
A problem here :( I have this code inside a functional component: const [fact, setFact] = useState(); useEffect( () => { async function startGetCatFact () { const {fact:factFromApi} = await getCatFact(); setFact(factFromApi); } startGetCatFact(); return },[]) const queryWords = fact.split('…
I want to upload multiple images from my reactjs frontend using DropZone. I have configured the backend to upload multiple images but everytime i try to upload images no images get uploaded and i recieve an empty array for the…