Loginsoft Interview Question

How does react work?