All Questions
5,774 questions
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 ...
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'
...
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 ...
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 ...
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 ...
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 ...
-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": ...
-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 ...
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 ...
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'
...
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': '...
-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 ...
-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 ...
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 ...
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,
&...