
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@telekom/scale-components-react-neutral
Advanced tools
Unfortunately React
brings it's own synthetic event system and handles all props as HTML attributes, more info: Custom Elements Everywhere.
To work around this problems we provide custom element wrappers for better developer experience.
Please note that you will need to install both, the telekom/scale-components-neutral
as well as the @telekom/scale-components-react-neutral
packages.
Once you have installed both packages and defined the custom elements, Scale
components behave mostly the way you would expect a React
component to behave!
import React from 'react';
import ReactDOM from 'react-dom';
import { applyPolyfills, defineCustomElements } from '@telekom/scale-components-neutral/loader';
import App from './App';
import '@telekom/scale-components-neutral/dist/scale-components/scale-components.css';
import './index.css';
applyPolyfills().then(() => {
defineCustomElements(window);
});
ReactDOM.render(<App />, document.getElementById('root'));
import React from 'react';
import { ScaleButton } from '@telekom/scale-components-react-neutral';
import './App.css';
const App: React.FC = () => (
<div>
<ScaleButton>Label</ScaleButton>
</div>
);
export default App;
In order to prevent collisions with standard events and compatibility with other libraries and frameworks,
some components of Scale
are using custom event names. You can find documentation for the custom events on the respective component pages in the docs
section.
Events in React are prefixed with: Scale{EventName}
Find Telekom Scale on GitHub.
FAQs
React proxy for @telekom/scale-components
The npm package @telekom/scale-components-react-neutral receives a total of 49 weekly downloads. As such, @telekom/scale-components-react-neutral popularity was classified as not popular.
We found that @telekom/scale-components-react-neutral demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.