Questions tagged [react]
React is a JavaScript library for building user interfaces. This tag can be used for all questions related it.
23
questions
0
votes
0
answers
56
views
JSS: Accessing the current SXA tenant and site name from a React API
I'm on Sitecore 10.2 so I don't have access to the new 10.3/XM Cloud functionality which accomplishes this out of the box.
I've implemented a robots.txt handler for Headless SXA as per this article:
...
0
votes
0
answers
52
views
Can we use Sitecore JSS with React remix?
We were wondering if it was possible to setup Sitecore JSS using React remix.
Sitecore version - 10.3
2
votes
0
answers
105
views
How to render link / text field as seamless button in Experience Editor
Imagine we have a link field ctaLink and a text field ctaText which are rendered as follows:
<div className={styles['cta']}>
<Link field={fields?.ctaLink as LinkField} className={styles['...
1
vote
1
answer
67
views
How do you create Components with children like Tabs, Carousels, Search Results or List of Cards?
I am just transitioning from Sitecore MVC to SitecoreNextJs. I have been able to create simple components fairly easily, but haven't been able to create components with children, like tabs, carousels, ...
1
vote
1
answer
231
views
No fields and placeholder received from Layout API on JSS
I just started developing JSS applications last week and was using the JSS version 13 since our Sitecore version is 9.3 and look for some help with issues I encountered so far.
I tried to deploy ...
3
votes
2
answers
728
views
New JSS app will not start: GraphQL requests to Dictionary and Layout services are not supported in disconnected mode
I'm following along with Discover Sitecore's "Build Your First JSS App" video (https://www.youtube.com/watch?v=XNQGsr9_34A) and was only 2:10 in when I ran into my first issue.
All I've done ...
0
votes
2
answers
358
views
How is Integrated mode configured for a Sitecore JSS React app?
We have a Sitecore JSS app that has been working for some time in both Disconnected and Connected mode, locally in Docker and hosted on Azure App Services. It runs in the CM environment, and on a Node ...
0
votes
1
answer
354
views
Sitecore requests give a 404 in connected mode
I'm using Sitecore 10.1 with JSS 16.0.0. In connected mode when I visit a Sitecore path, it gives a 404 error.
For example:-
http://localhost:3000/sitecore/api/layout/render/jss?item=%2F&sc_lang=...
1
vote
0
answers
100
views
Debug Sitecore JSS React while SSR
How can I debug the JSS React application while using SSR, how to run the application with SSR in local machine with default npm commands?
2
votes
0
answers
140
views
"jss-main" was not found in the current rendering data while using node-headless-ssr-proxy with React
I am developing the JSS react template with node-headless-ssr-proxy for my company's solution, the react application have been migrated with Redux and dynamic routes, it can run and work normally in ...
0
votes
1
answer
308
views
Sitecore headless with React frontend - JSS or SC 10? [closed]
We would like to gradually migrate our current Sitecore 9.2 MVC site to a headless architecture. For the frontend we would like to use React.
Considering that Sitecore 10.1 just released with ...
0
votes
0
answers
396
views
Guidance on storing data in Sitecore Context or Local/Session Storage
We are building a React app using Sitecore JSS and we want to store some data about the user. The data is either info we want to store while the user is logged in (e.g. cache the user profile ...
0
votes
0
answers
249
views
Failed prop type: Invalid prop `errorComponent` supplied to `PlaceholderComponent`
I'm trying to improve error handling for my app, so I've create a very simple component ErrorComponet.jsx:
import React from "react";
const ErrorComponent = (props) => {
return (<...
1
vote
1
answer
216
views
JSS Deployed to Docker Container: Links to media files missing port number
When I deploy a JSS app to a Sitecore instance running in a Docker Container and run our applications in Integrated Mode, our application is accessible with a hostname and port number (e.g. http://jss....
2
votes
1
answer
597
views
How to embed Youtube & Vimeo videos in Sitecore JSS with React
I have create a video player component in Sitecore jss/react. I have tried with react-player player plugin. It is working fine in disconnected mode but as soon as I deployed it in Sitecore, it is ...
2
votes
1
answer
429
views
Value cannot be null. Parameter name: element
After I input the command with the certificate
jss deploy app --includeContent --includeDictionary --acceptCertificate ww:ww:11:....
Following error shows up.I'm using Sitecore 9.0.2 and doing the ...
2
votes
0
answers
93
views
React owl.carousel $ not defined in preview but working in edit mode
I'm having an error right now with owl-carousel. I have it imported in some of my components in react jss and it is throwing error when I'm on Preview in Experience Editor but working perfectly when ...
1
vote
1
answer
360
views
How to make Material UI components editable in Sitecore JSS React App?
Since I am using Material UI in my Sitecore JSS app, I wanted to know how can I make Material UI components to make it editable for experience editor?
For example:
How to make the below Material UI ...
1
vote
2
answers
557
views
Droplist item returns name instead of "display name" for the component
I have a list of departments (store, administration.. ). In my component I've set this list as the datasource for a droplist. One of the departments has name "storeOutside" and a display name "Store/...
4
votes
1
answer
2k
views
Is it possible to combine Sitecore 9.1+DotNet+React Js
I have a requirement in my project. It is an existing project which is developed in Dotnet MVC + Sitecore 9.1, so some part of the page in that project needs to be implemented in react js, for example,...
0
votes
0
answers
225
views
Reading image in React app component
I have created one sample app in disconnected mode. Inside that, I have created 1 image component.
It works fine in disconnected mode but when I deploy it, to my sitecore instance then it will give an ...
1
vote
2
answers
736
views
Newly created JSS react app does not start and show blank page
The newly created JSS react app does not start. It shows completely blank page and shows error in the console while accessing the public URL i.e. http://jssreactweb/, Using fresh install of Sitecore 9....
1
vote
1
answer
1k
views
Error on typings using JSS Text with Typescript
I'm getting an error on the fields property when using Typescript from this tutorial
class Profile extends React.Component<Props, State> {
constructor(props: any){
super(props);
}
...