{ All snippets }

Tweetsnippet is a curated list of tips and tricks from Twitter.

R. Alex Anderson ๐Ÿš€

R. Alex Anderson ๐Ÿš€ @ralex1993

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ Tip: awaiting is an execution-blocking operation, as in the rest of the function won't execute until the awaited promise is resolved. Run promises concurrently by awaiting references to the already executed promises! (You can also do this with Promise.all()) https://t.co/Vp1C6pOXkJ

Daily Web Dev

Daily Web Dev @dailywebdev

Being able to hook into different parts of your Laravel app is invaluable. Here are a few ways you can hook into various stages, such as after a route match, before template compilation, after query execution etc. (this would sit inside a service provider ๐Ÿ‘‡) #laravel #php https://t.co/yjhhEphcCL

Paul Redmond ๐Ÿ‡บ๐Ÿ‡ธ

Paul Redmond ๐Ÿ‡บ๐Ÿ‡ธ @paulredmond

๐Ÿ’ป If you're application is behind a proxy/load balancer, you can force HTTPS at the web server level by checking the X-Forwarded-Proto header https://t.co/oomJNOWNUe

PHP
Cory House ๐Ÿ 

Cory House ๐Ÿ  @housecor

React Tip: Use the useRef Hook to declare instance variables. Here's an example of checking if the component is mounted to avoid setting state on an unmounted component. #react https://t.co/fMttullH6P