Re:Flux Application Architecture
by wingspan on Friday May 09, 2014 @12:22PM
(#7721686)
No! Never access the DOM directly if you can help it. I forgot to mention, display things like you said are one of the only places we really use local state. A dropdown for instance, might have a state called "isOpen". In your click handler, you'd call this.setState({isOpen: true}), and in render, you'd only render the dropdown if isOpen is true.
[ Parent
| on HN ]