Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
react-arbiter
Advanced tools
React Arbiter provides a sets of components and utilities to recall runtime extensions to your application and to stasis third-party components to avoid crashing your application.
You need to have Node with NPM installed. In your repository run
npm i react-arbiter
In the simplest case you want to just use the ArbiterRecall
without any loading special rendering while loading. For this use
import { ArbiterRecall } from 'react-arbiter';
function createApi(moduleMeta) {
//create here an API object for the respective module
return {};
}
function getModules() {
//get a list of the available modules, potentially with content
return fetch('/your/modules');
}
const App = (
<ArbiterRecall createApi={createApi} getModules={getModules}>
<YourComponent />
</ArbiterRecall>
);
A module comes with the following interface:
interface ModuleMetadata {
version: string;
name: string;
dependencies: {
[name: string]: string;
};
content?: string;
link?: string;
hash: string;
}
This is similar to what the package.json
looks like, however, containing three new elements: A hash representing the module, and either a link to the module's content (link
) or the content directly (content
).
(tbd)
react-arbiter is released using the MIT license. For more information see the LICENSE file.
0.2.0
wrapComponent
and wrapElement
setupModules
and loadModules
helperFAQs
Recall all your modules to extend your SPA dynamically at runtime.
The npm package react-arbiter receives a total of 57 weekly downloads. As such, react-arbiter popularity was classified as not popular.
We found that react-arbiter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.