You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of that it might be an improvement to use a Dict function instead. Also you can say that this would be more a React like approach, because we use pure JSX.
Let's assume we have defined the following dictionary
dict
:Currently we access a dictionary entry like this:
The downside of this approach is that function calls (at least those who do not create a JSX element) invalidates Flow type refinements: https://flow.org/en/docs/lang/refinements/#toc-refinement-invalidations
Because of that it might be an improvement to use a
Dict
function instead. Also you can say that this would be more a React like approach, because we use pure JSX.Without values the new syntax would also be a little bit shorter:
The text was updated successfully, but these errors were encountered: