react vs vanilla js example