Mar 3, 2021
Seems like wp_enqueue_script() is not used correctly.
Set the react app aside, try to load any script with wp_enqueue_script.
https://developer.wordpress.org/reference/functions/wp_enqueue_script/
Maybe you not calling wp_enqueue_script inside the hook?
https://wordpress.stackexchange.com/questions/29628/wordpress-wp-enqueue-script-not-working