code: def react_ui(dest_dir: Optional[str] = None) -> None:
      # verify all the prereqs for install are met
      _check_react_prerequisites()
  
      # copy template files to the dir
      _copy_and_setup_react_ui(dest_dir)
  
file_path: pytorch-lightning/src/lightning/app/cli/cmd_react_ui_init.py
imports: import os
  import re
  import shutil
  import subprocess
  from typing import Optional
  from lightning.app.utilities.app_helpers import Logger
label_desc: Use image node_id 1 for calling a global function with example usage: react_ui(dest_dir) without return types