Questions tagged [react]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
35 views

Magento2 - Magento Headless

Like PWA everyone has started to use the word "Headless Magento" but I didn't find anyone to explain it in that detail. Till now, I only managed to understand that it prefers to use react than ...
0
votes
0answers
64 views

Error in Apollo Query to Magento GraphQL API in Next JS app

I'm putting together a Next JS (9.x) frontend pulling in data from the Magento GraphQL API (2.3.2) using Apollo. My queries are returning an error on initial navigation but, but will render the data ...
1
vote
0answers
60 views

react-select-search - Uncaught TypeError: this.state.value.slice is not a function

I am working on a ReactJS web app and using "react-select-search" package for search & select feature for countries' ISD codes. GitHub link to package used I've cross checked the values from ...
1
vote
1answer
59 views

React with Magento 2

I have to use ReactJS as a frontend for Magento 2. Below is one of the github repo I looked after to integrate but it seems it's not that efficient, even not working in my case. Check GitHub Repo I'...
1
vote
0answers
13 views

How to integrate ReactJS with Magento 2 frontend [closed]

For example I have to build a contact form in header. I want to create a module and then call that module in header
0
votes
0answers
25 views

Magento2 How To Create Class Element Using React JS

I have used below code to work with react js but getting below error. ReferenceError: React is not defined I have add react.js file using default.xml And Also one another file form.js and ...
4
votes
1answer
73 views

Magento 2 : How to create simple example of React JS Module?

How to create simple example of React JS Module?
1
vote
0answers
133 views

Hide Authorization Token from Request Headers in browser for headless magento 2

We are using reactJS as frontend for magento 2 website using magento 2 rest APIs. But the authorization token is visible in the browser dev tools posing security risk. Kindly suggest a way to hide ...
5
votes
1answer
185 views

Magento2 : How to call Newsletter in PWA

How can I add Newsletter in PWA Magento2 ?
1
vote
0answers
141 views

Custom rest API for magento 2 contact form with react venia storefront

I'm currently setting up a contact form in venia storefront and trying to get it to link to my rest api in magento 2. On button click the forms linking to the actions file and then throwing a not ...
1
vote
0answers
240 views

React Router Breadcrumbs use page titles instead of url dynamically

I've got a magento 2.3.1 site with venia storefront a react front end and I'm trying to get the breadcrumbs to pull the page titles dynamically rather than pulling the url. My current code for the ...
1
vote
0answers
237 views

How to use magento 2 rest api in react js

I am learning react js with magento. I want to use magento rest api in my react js app how can i do that ?