react : functionalcomponent vs class component



Was playing around with Nextjs and the code that keeps on popping up are Functional component (as shown in code below).

The difference between functional and class component.


Functional component 



Class component 





Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm