Frontend Engineer at Eleven Labs
…pes and defaultProps are static properties, declared as high as possible within the component code. They should be immediately visible to other devs reading the file, since they serve as documentation.
We also separate our dependency imports from local imports by a newline.
… source of truth be as close to possible to having everything also makes it easy to reproduce bugs: you can export state and reload it and boom, your screen looks exactly like that of a user. If you have a lot of internal state, you can’t do that.