Posts

Showing posts from June, 2021

My Yolo5 Tutorial in Colab

https://colab.research.google.com/drive/19sBh62mw3s0gKPpn8kazAFR0uft09sKf#scrollTo=godqsRM2HhDo

react basic - inline conditional rendering

Some inline rendering style. https://codesandbox.io/s/agitated-wozniak-fjwgl?file=/src/App.js

useRef to manipulate react object properties / behaviour / styling

  The code sandbox demostrate how to use useRef to update or change behaviour of a button or other html elements.  https://codesandbox.io/s/vigorous-browser-uxc21?file=/src/App.js

useCallback and React.memo

The following codebox demostrate the use of useCallBack vs react.Memo to optimize react rendering. The intention is not to re-render everything and everytime something changes.  But like all great power, comes great responsibilities.  https://codesandbox.io/s/funny-lederberg-3cfjk?file=/src/App.js