React for both client and server