Skip to main content

All Questions

Tagged with
0 votes
0 answers
16 views

How to keep Chrome Extension popup open during Google login with launchWebAuthFlow?

I'm using chrome.identity.launchWebAuthFlow() in my Chrome Extension popup to log in users with Google (via Supabase). Project created in React enter image description here The problem is: when i ...
Dany Brok's user avatar
0 votes
2 answers
76 views

Fetch data from an API in ReactJS and display it using components

I am having issues displaying data to the frontend in ReactJS. I am trying to fetch data from an API and I want to render the data in a card which I have created already import React from 'react' ...
Vimal.k's user avatar
1 vote
1 answer
66 views

When I make a fetch request then take out the JSON, instead a promise is saved as a variable with the correct JSON in it

When I make a fetch request then take out the JSON, instead a promise is saved as a variable with the correct JSON in it. I can not figure out how to pull the data from the promise in the variable in ...
Jay _'s user avatar
  • 13
0 votes
0 answers
25 views

How can I dynamically inject theme colors from JSON into PrimeReact's CSS/SCSS themes?

I'm building a React project with TypeScript that will be sold to multiple clients. To accommodate dynamic theming, all configuration—including theme colors, assets and texts—is fetched from an API ...
Michel Merheb's user avatar
0 votes
1 answer
87 views

JSON Expand/Collapse Functionality Not Working

The expand and collapse functionality for JSON is not working as expected. When attempting to expand or collapse the JSON data, no action takes place, and the data remains static. This issue is ...
Yash Bhomle's user avatar
0 votes
1 answer
85 views

How to Convert a PDF Table with Thousands of Rows into JSON in React

I am working on a project where I need to convert a PDF containing a large table (thousands of rows) into a JSON Array of object. The PDF has a table with headers that should be used as keys in the ...
Manu H N's user avatar
-1 votes
2 answers
59 views

Fetch error when trying to do 'DELETE' operation

I'm trying to do a DELETE operation of a json resource via react. But my code isn't working when I'm trying to declare id as numeric. but it will work when id is a string. like: { "items": ...
AI Nobin's user avatar
-1 votes
1 answer
73 views

Data Fetching from a Static JSON File / REACT

I have a static json file appyling this format: [ {/*OBJECT1*/}, {/*OBJECT2*/} /* SO ON ... */ ] I wanted to fetch data to my React Component from this JSON file I fetch the data in my React ...
silenceofworld's user avatar
0 votes
1 answer
75 views

Terminal not receiving JSON-Server requests when npx json-server -w db.json is used

I am a newbie to JSON so I am still figuring out what it's all about. In the course I am taking on YT, they use the command npx json-server -p 3500 -w data/db.json in the terminal to install json ...
Feltriz's user avatar
  • 11
0 votes
2 answers
76 views

react-json-tree want to have default

I tried to use this module to display a json https://www.npmjs.com/package/react-json-tree my example code for this was import React from "react"; import { JSONTree } from 'react-json-tree' ...
Daniel's user avatar
  • 33
0 votes
0 answers
101 views

JS, React How to pass JSON data with POST method to backend without OPTIONS request?

We're making a project with both frontend and backend, there is auth form, which should make POST request to backend, giving JSON object with email and password of user. If I specify 'Content-Type': '...
Liza's user avatar
  • 11
-1 votes
1 answer
129 views

Using React to write into Json file

So im trying to create a small cafe website using react. customer told me that he wanted his orders to be be visible on admin dashboard, so i thought i would make something like this: import React ...
george tavadze's user avatar
-4 votes
1 answer
45 views

Node JS Sends html as response instead of JSOM

I have a node js app in VPS and static files are served from dist folder (react app build files). However when i make a http request from my client, I get html as response instead of JSON const ...
adithyan sivaraman's user avatar
0 votes
1 answer
30 views

how to make it clean to feed a React template from a local text heavy .json file?

I'm doing an SPA right now and the all thing works well so far. To get different text content and pictures according the view, based on the url path, i pull the data from a .json file, local to the ...
itachi uchiha's user avatar
0 votes
0 answers
26 views

React/Strapi Blog Single - JSON parse issue

Been working with React the last few days and hit a wall with this strange issue. Im getting an API response from strapi with this json: { "data": [ { "id": 6, &...
Chase Barnes's user avatar

15 30 50 per page
1
2 3 4 5
385