Today I Learned

hashrocket A Hashrocket project

Optional Chaining Enabled In Metro

Metro now comes with the Babel Proposal for Optional Chaining

Optional Chaining behaves similarly to Ruby's pretzel(&) operator:

this.props?.data?.iconUrl

Babel - Optional Chaining

Github - facebook/metro - v0.54.0

See More #javascript TILs
Looking for help? At Hashrocket, our JavaScript experts launch scalable, performant apps on the Web, Android and iOS. Contact us and find out how we can help you.