Events enable a class or object to notify other classes or objects when something of interest occurs. The class that sends (or raises) the event is called the publisher and the classes that receive (or handle) the event are called subscribers.
Events use delegates and limit communication to only one way. The subscribers only can listen and cannot modify the publisher.
Subscribe to:
Post Comments (Atom)
Call a function in child component from parent component in React
Consider the following parent component class Parent extends React.Component { constructor(props) { super(props); thi...
-
The process of replacing a module with generic and mostly empty object, called a mock. Advantages: Isolates our code from its dependen...
-
When we create a class or struct, its constructor is called. Constructor will have same name as a class or struct and is usually used to ini...
-
What is Git?? Git is a version control system for tracking changes in computer files. It is developed in 2005 . It is distributed vers...
No comments:
Post a Comment