Most react code written today uses functional components and hooks, with this PR, the main class component (Instagram) is converted to its equivalent functional component.
It does not lead to changes in behavior or improvements in performance, but it brings the code closer to the present day and will facilitate future maintenance by other people.
renderClose and renderWebview are still inner functions of the main component
Most react code written today uses functional components and hooks, with this PR, the main class component (
Instagram
) is converted to its equivalent functional component.It does not lead to changes in behavior or improvements in performance, but it brings the code closer to the present day and will facilitate future maintenance by other people.
renderClose
andrenderWebview
are still inner functions of the main component