using react as rander lib