I have a GUI / abbreviation application. As part of the view, there is a “indicator” component that I want to blink, and blinking is done using CSS3 animations (animated frames). The indicator.blink() member function for the responding component is called to make the indicator blink (it basically removes the blink class from the DOM element and then adds it again after 1 ms, as a hack to circumvent the fact that there is no "restart" "api for CSS3 animation).
For certain actions that take place in the redux structure (they can be gaps, if necessary), I want to call this function blink() in the reaction view. What is the best way to do this?
It is not correct that the redux action changes the state of the application, and then the indicator element is associated with one of the state variables as prop , since this is not really a state, but an instant event. But I don’t know any other way to get the redux action to modify the responsive component.
javascript events reactjs redux
gbmhunter
source share