I'm a noob at this, so excuse me if this is a ludicrous question..
I have a ReactJS app that interacts with a smart contract via web3.
At a certain point, some data gets stored to the contract,
by calling a function in the contract. Just after this data
is stored, I would like to be able to
call a js script, which uses Twilio to send an SMS. This script only seems to work locally when called with '
in the terminal. The script works when called like this. But cannot be imported into the React Component file for some reason. I think it's because it cannot be run from the client.
I had been attempting for some time to call this script from within the React component(inside an onSubmit function which is executed due to a Button press), however, it seems that I cannot even import anything to do with this script into the Components file.
Is there a way to call it from solidity, or to trigger its execution with node?