Javascript Invalid Hook Call Error After Selfclosing One Component

Javascript Invalid Hook Call Error After Selfclosing One Component