Questions tagged [reactjs]

React (also known as React.js or ReactJS) is an open-source JavaScript library developed by Facebook for building user interfaces. It uses a declarative, component-based paradigm and aims to be both efficient and flexible.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Is there a way to convert Jhipster project to react project separately?

I have a project managed by jhipster developed in frontend in react and in backend in spring and I want to extract the front part separately from the jhipster project. Is it possible?
0
votes
0answers
6 views

How to reuse one Video element in multiple places (with different parent div) and at different times in javascript?

I have one video element, where I play a video on BUTTON CLICK, to enable autoplay on this video element (iOS safari restrictions and requiremets). now, lets say after 15 seconds I have another url ...
-3
votes
0answers
11 views

What technologies I can use to build a chat app using react native? [closed]

I am going to build a chat application in mobile for my last year college project. now I am learning front end development. and I want to build it using react native, I think I am in intermediate ...
0
votes
0answers
7 views

Faced CORS policy error when tried to send request to an endpoint

I wanted to send http request via fetch() to an endpoint and that endpoint allows any origin to access its resources but in browser I kepp getting Access to fetch at 'xxxxx' from origin 'http://...
0
votes
0answers
10 views

how to update state in redux?

I am new to react redux. i have this state into reducer const initialState = { notifications: [], }; const enqueueSnackbar = (state, action) => { return { ...state, ...
0
votes
1answer
14 views

React render DOM HTML page in component

In my React app, I am using the standard component. However, when the user clicks a save & exit option they should be redirected to a page which is a dom element from an outside location: document....
0
votes
0answers
12 views

Bootstrap popover wrong initial position, changes after click

I am using bootstrap popover as information about blocking some views on my app. This is how my code looks: Here is how my dom looks after showing popover: I show it after clicking on some part of ...
0
votes
3answers
20 views

loca storage in react todo list

I created to do list using react, but I want it to be local storage - so when the user refresh the page it still saved the items and will present them. I read I need to use localStorage but I'm not ...
0
votes
0answers
8 views

Increase the boundary of mouse hover event on Line svg [duplicate]

I am using SVG tags to plot lines. For each line onMouseOver and onMouseOut callbacks are defined to show and hide the tooltip when mouse is hovered. Tooltip opens only when mouse is hovered exactly ...
0
votes
0answers
10 views

Make jest globally available in storybook

I am using @storybook/react 6 in a create-react-app project. I have thousands of tests and mocks for all my stores/objects and so on. These mocks make use of jest.fn(). I would like to reuse these ...
0
votes
1answer
11 views

React Redux Connect wrap component

Im learning react and the instructor creates components as in Code 1 where as I create the function as in Code 2. How do we wrap code 2 within Redux Connect()? Code 1 const Header = ({ currentUser }) =...
0
votes
1answer
18 views

How can I check a click on a child component using jest, if the callback isn't passed as prop?

I have the following component: <MaxFrContainer data-test="wellness-report-card"> <PrimaryBlueButton onClick={() => { // open popup }} > ...
1
vote
0answers
13 views

Import React icons inside stylesheet CSS file

I am working on a gatsby project and I am using React Icons. Inside assets/css/style.css I have this code: .testimonial-item:before { color: #eceff5; content: '\f10d'; font-family: 'Font ...
0
votes
0answers
13 views

SetContents SunEditor is not working React

I have been testing with SunEditor since I want to pre-load an HTML text stored in DB and let users modify it if necessary. I'm passing a ref variable from parent so when the submit button is clicked ...
0
votes
0answers
21 views

How to use promises with data from an external API in react native

I'm fetching data from an external api. This data is currency pair e.g EURUSD with real time Ask and Bid Prices respectively e.g 1.17123 , 1.17150. The user of the application is therefore required to ...

15 30 50 per page
1
2 3 4 5
16965