![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@rimble/network-indicator
Advanced tools
Web3 React component built with Rimble UI that will display the current ethereum network name based on a given network ID.
React component built with Rimble UI that will display the current Ethereum network name based on a given network ID and optionally display and icon and tooltip indicating whether the user is on the correct network for the application.
Install the package in your project directory with:
// with npm
npm install @rimble/network-indicator
// with yarn
yarn add @rimble/network-indicator
import NetworkIndicator from '@rimble/network-indicator';
// Default
<NetworkIndicator currentNetwork={3} />;
// Has requiredNetwork prop
<NetworkIndicator currentNetwork={3} requiredNetwork={1} />;
// Custom tooltips for default
<NetworkIndicator currentNetwork={1}>
{{
onNetworkMessage: 'Connected to correct network',
noNetworkMessage: 'Not connected to anything'
}}
</NetworkIndicator>
// Custom tooltips with requiredNetwork prop
<NetworkIndicator currentNetwork={null} requiredNetwork={1}>
{{
onNetworkMessage: 'Connected to correct network',
noNetworkMessage: 'Not connected to anything',
onWrongNetworkMessage: 'Wrong network',
}}
</NetworkIndicator>
Name | Type | Default | Description |
---|---|---|---|
currentNetwork | integer | none | The network ID that the user is connected to, if available |
requiredNetwork | integer | none | The network ID that the dApp requires to function |
onNetworkMessage | string | none | Content of a hover tooltip when there is a currentNetwork prop and when requiredNetwork exists and matches currentNetwork prop |
noNetworkMessage | string | see default messages | Content of a hover tooltip when there is a null value for currentNetwork prop even when there is a requiredNetwork prop |
onWrongNetworkMessage | string | see default messages | Content of a hover tooltip when values do not match for currentNetwork and requiredNetwork props |
Only when requiredNetwork
exists and matches currentNetwork
prop
You're on the right network
You're not on an Ethereum network
You're on the wrong network
Open an issue for any bugs or feature requests
We are open source and welcome your contributions !
MIT © ConsenSys
FAQs
Web3 React component built with Rimble UI that will display the current ethereum network name based on a given network ID.
The npm package @rimble/network-indicator receives a total of 11 weekly downloads. As such, @rimble/network-indicator popularity was classified as not popular.
We found that @rimble/network-indicator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.