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.
Questions tagged [components]
11658 questions
86
votes
4 answers
What is the difference between User Control, Custom Control and Component?
These are three different things you can add to a project and I am not quite sure if I understand the difference. They all seem to for example show up in the component toolbox when working with a Form. What are some common usage scenarios for each…

Svish
- 152,914
- 173
- 462
- 620
85
votes
6 answers
How can I change this class base higher order component into a functional component?
I have already created a HOC in my react app following this, and its working fine. However i was wondering if there is a way to create a HOC as functional component(With or without state)??? since the given example is a class based component.
Tried…

Mohammed Amir Ansari
- 2,311
- 2
- 12
- 26
84
votes
3 answers
Conditionally displaying JSF components
First, I am new to Java EE, came from a strong ASP .NET development background.
I have gone through the net, and I might miss this but it seems like there is no simple and straight-to-the-point tutorials on how I could connect backing bean class to…

Haikal Nashuha
- 2,958
- 7
- 44
- 67
84
votes
4 answers
How to Pass data from child to parent component Angular
I have a component named search_detail which has another component inside it named calendar,
SearchDetail_component.html
81
votes
2 answers
How does the 'binding' attribute work in JSF? When and how should it be used?
There are lot of materials out there differentiating value attribute and binding attribute in JSF.
I'm interested in how both approaches differ from each other. Given:
public class User {
private String name;
private UICommand link;
//…

John Eipe
- 10,922
- 24
- 72
- 114
80
votes
9 answers
RxJS: takeUntil() Angular component's ngOnDestroy()
tl;dr: Basically I want to marry Angular's ngOnDestroy with the Rxjs takeUntil() operator. -- is that possible?
I have an Angular component that opens several Rxjs subscriptions.
These need to be closed when the component is destroyed.
A simple…

marius
- 1,533
- 3
- 16
- 22
80
votes
5 answers
React: Passing props to function components
I have a seemingly trivial question about props and function components. Basically, I have a container component which renders a Modal component upon state change which is triggered by user click on a button. The modal is a stateless function…

Jose
- 4,880
- 8
- 27
- 49
79
votes
3 answers
Emit event with parameters in vue
i'm trying to emit function with parameters like that.
template: `
73
votes
2 answers
Angular 2 - How to trigger a method on a child from the parent
It's possible to send data from the parent to a child through @Input, or to call a method on the parent from the child with @Output, but I'd like to do exactly the other way around, which is calling a method on the child from the parent. Basically…

Christophe Vidal
- 1,894
- 1
- 19
- 13
67
votes
4 answers
angular2 test, how do I mock sub component
How do I mock sub component in jasmine tests?
I have MyComponent, which uses MyNavbarComponent and MyToolbarComponent
import {Component} from 'angular2/core';
import {MyNavbarComponent} from './my-navbar.component';
import {MyToolbarComponent} from…

allenhwkim
- 27,270
- 18
- 89
- 122
65
votes
5 answers
Checking for Undefined In React
I have a scenario where I'm passing data from a reducer into my react state.
data:
{
"id": 1,
"title": "Test",
"content": {
"body": "sdfsdf"
"image": "http://example.com"
}
}
Using componentWillRecieveProps, this…

lost9123193
- 10,460
- 26
- 73
- 113
63
votes
3 answers
Free Barcode API for .NET
Is there a decent free API/component for printing barcodes in C#?

Vaccano
- 78,325
- 149
- 468
- 850
61
votes
1 answer
React - how to pass state to another component
I'm trying to figure out how to notify another component about a state change. Let's say I have 3 components - App.jsx,Header.jsx,and SidebarPush.jsx and all I'm simply trying to do is toggle a class with an onClick.
So the Header.jsx file will have…

agdev
- 653
- 1
- 7
- 5
58
votes
1 answer
How to get the current MavenSession or MavenExecutionRequest from a Plexus Component
I created a Plexus component to house common logic for several Mojos I want to create. I have been able to pass information like localRepository and project from the Mojo (and test cases).
I was wondering if there is a way to get the MavenSession or…

Thomas
- 2,095
- 18
- 24
56
votes
5 answers
React Native what exactly is the <> (empty) component
In React Native you can encapsulate a set of components in one single (or similar) component. You can also encapsulate a set of components as <> and >. What are these? Do they just translate to an base View? It's probably not a good…

Sander Koldenhof
- 1,223
- 4
- 13
- 26