Questions tagged [components]
A component in the Unified Modeling Language "represents a modular part of a system, that encapsulates its content and whose manifestation is replaceable within its environment. A component defines its behavior in terms of provided and required interfaces". The best example of component can be found in ActionScript- Flash,Flex sdks. There you have UI components like buttons, labels, DataGrids, charts those are reusable, distributable etc.
components
11,816
questions
0
votes
1
answer
19
views
Configuration composent testing Cypress with StencilJS? [closed]
how to configure component testing with Cypress in a project using the StencilJS framework?
Cypress : v13
I was inspired by the configuration examples with the React and Angular framework, but ...
0
votes
1
answer
27
views
How to prevent a React component from freezing the page after loading?
I am using the following library uiwjs/react-json-view, it is the typical library to view json. The issue is that I want it to load a large json. But when it does, it freezes the page in the process. ...
1
vote
1
answer
32
views
Blazor .Net Core 8: How to use Server Side Component on the Client side?
I want to use the InteractiveAuto feature of WASM. So I want to create my pages on the client side.
But I also want to access server side components that have access to my SQL database.
It seems ...
1
vote
2
answers
25
views
Pass click functionality from one component to another in angular
I am having a parent component. Let say; Component1. In its html I have added below code.
<div>
<router-outlet></router-outlet>
</div>
<div>
<button>Banner</...
0
votes
0
answers
26
views
Best practice to do dynamic component content/structure within a React Project [closed]
I am currently in the process of creating an orientation website using react (nothing serious just a university project). Currently I am implementing a to-do list which is a list of components that ...
0
votes
0
answers
12
views
how to style images in styled-components
these are my images in my React.js app:
<img className="mobile-image" src={MobileImage} alt="mobile image" />
<img className="desktop-image" src={DesktopImage} ...
0
votes
0
answers
10
views
Failed to execute 'createElement' on 'Document': The tag name provided ('/static/media/image-web-3-mobile.aff7026b3651.jpg') is not a valid name [closed]
im trying to import an image from src folder
import MobileImage from "../../assets/images/image-web-3-mobile.jpg";
i get an error on my screen Failed to execute 'createElement' on 'Document':...
0
votes
1
answer
20
views
I'm using Preline, and on a dynamic page, why do I have to reinitialize it repeatedly?I'm using Next.js; shouldn't it only need to be initialize once?
I'm using preline and in a dynamic page why do i have to reinit it over and over. someone suggested using mutation observers, but this feels wrong I'm using nextjs shouldn't it be an spa and only ...
1
vote
1
answer
19
views
TypeScript - Cannot find module './Message' or its corresponding type declarations
I am trying to create a component (App) that imports another component (Message) described in another file (Message.tsx).
I'm following this React tutorial on Mac, using the latest version of VS Code, ...
1
vote
2
answers
37
views
Angular component inheritance: will @Component decorator metadata inherited?
I have a parent-component like this:
@Component({
template: "",
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ImYourFather {}
Now I also have two inheritance ...
0
votes
5
answers
204
views
How to concatenate the rating-bar markup of a star-rating component via a for-loop?
I have a rating number for 3 different products,
and I am trying to render a star svg based of their rating number.
For example product-A has rate 3, I want to render star img, 3 times.
The maximum ...
0
votes
2
answers
131
views
React Component - wait for prior promise method (fetch) to reach its finally {} block (cancelled using AbortController) before starting a new promise
I have a React component with 3 buttons representing 3 choices the user can make.
If the user clicks a button and then another button I cancel the previous HTTP request using AbortController.signal....
0
votes
0
answers
15
views
integrating a MUI minidrawer in my react project
I want to try the MUI Mini variant drawer in my react project but it doesn't work :
I created a react vite project , I installed the @mui/material and @mui/icons-material packages, and from the MUI ...
0
votes
1
answer
12
views
When to use PCA(n_components=0.95) and when to use PCA(n_components=2), what is the difference between them?
For the Principal Component Analysis (PCA) model training
when to pass variance as PCA(n_components=0.95) and when to use PCA(n_components=2) with pipeline having Standardscaler for standardizes the ...
0
votes
3
answers
122
views
How to update a form-related (data-)model with every form-data change?
I have the following function, in order to update values from four different input fields:
UPDATED
My Package Class is defined as followed:
class Package {
constructor(packageID, type, weight, ...