This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
The bug was aria-expended instead of aria-expanded and the toggle function should reverse the value of isOpen state. | |
i would improve it by destructuring the props children. | |
to sync this dropdown selection to the server app.sync should be at getDerivedStateFromProps() | |
*/ | |
import React, {PureComponent} from 'react'; | |
class Dropdown extends PureComponent { | |
constuctor(props) { |