Remix is a browser-based online compiler, in view of network problems, there may be a problem, so you can build their own local remix. official online compilers:
Https://ethereum.github.io/browser-solidity
https://remix.ethereum.org
Recommended use of online compilers
1. Install local Remix (WINDWOS): official Address: Https://github.com/ethereum/remix-ide
Mode one:
git clone https://github.com/ethereum/remix-ide.git
CD remix-ide
npm install
npm Run build && npm Run serve
Mode two: It's already a module for NPM.
NPM Install remix-ide-g
remix-ide
Start command:
NPM start
Visit remix:http://127.0.0.1:8080
The interface is as follows:
At this point, Remix is a configuration complete.
2. Simple use:
2. Click on the dropdown box to select a different version, including the latest build that is not yet ripe, or the previous version. Select release versions, as shown in the following illustration:
3. The contract is automatically compiled and generated:
4. Click Create to create an instance of the smart contract in memory, where the following WEB3 deploy code is deployed in virtual memory: