How do I reference to a text files Content? – Reactjs
[react.js] I'm trying to refer to the content of a txt file but it if I reference to the file it will show me the path. how do I reference to the contents of the file? //the bashcode contains a…
[react.js] I'm trying to refer to the content of a txt file but it if I reference to the file it will show me the path. how do I reference to the contents of the file? //the bashcode contains a…
So, I'm trying to fetch data -onClick- using reactQuery and to store the response in a variable. const { data: response, refetch } = useQuery({ queryKey: ['get-response'], queryFn: async() => { return await Axios.get('URL').then((res) => res.data); }, enabled: false, //to…
client side - react js server side - dot net XSLT version - 2.0 hi, requirement is to transform an XML file to a html file using an XSLT stylesheet to display to the user in the client side. But…
When I load my Nextjs page, I get this error message: "Error: Rendered more hooks than during the previous render." If I add that if (!router.isReady) return null after the useEffect code, the page does not have access to the…
I was happy lasts days using **.env **file with the npm dotenv package and saving there some secret keys i use on my React App... On my first test opload I noticed that my webbApp runs ok EVEN without specifying…
I am getting some error while importing JSON file using Template literal in react typescript. export interface IData { BASE_PRICE: number; TIER: string; LIST_PRICE_MIN: number; LIST_PRICE_MAX: number; DISCOUNT_PART_NUM: Discout; } type Discout = { D1RJ6LL: number; D1RJ8LL: number; D1RJALL: number;…
I am getting json data like this [ { "emission": [ { "id": "fffda276-c7ed-4931-8211-48b3ae304b6f", "size": "Medium", } ], "id": "db9dd205-5986-432f-9aaf-1079d6fdd28c", }, { "emission": [ { "id": "5ae8991c-bbcd-4a97-a5ad-b1aac6d765c0", "size": "", }, { "id": "f670609a-d200-4c03-a8a7-34e2b244a4c7", "size": "Small", } ], "id": "95a9c2eb-7dac-45d6-9a6a-2718859d91f3", },…
I'm using mux-player-react on a next.js site to implement a large background looped movie. https://website-agobay-coming-soon-5iemrgd6o-hhag.vercel.app/ The video should be object-fit: cover to cover all the browser window. unfortunately it doesn't work. eather with: .videoMob { --controls: none; --media-object-fit: cover; --media-object-position:…
I'm starting learning about reactjs. But when i watch tutorial on youtube i often see that when definite component in sperate file and export, people always name the file name with component name defining in the file is similar. For…
I'm trying to make a Rick & Morty API call with fetch and an async arrow function, but I found that the function is pushing the elements received twice into my array. I already tried to make the call with…