Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@fractal-components/counter
Advanced tools
This is a sample UI Component built using fractal-component to demonstrate its reusability.
To try it out, simply create a HTML file with the following content (also available on CodePen):
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Counter Demo</title>
<!--
Load `babel-standalone` to support JSX in script tag
-->
<script src="https://unpkg.com/babel-standalone@7.0.0-beta.3/babel.min.js"></script>
<script src="https://unpkg.com/react@16.5.0/umd/react.production.min.js"></script>
<script src="https://unpkg.com/prop-types@15.6.2/prop-types.min.js"></script>
<script src="https://unpkg.com/react-dom@16.5.0/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/redux-saga@1.0.0-beta.2/dist/redux-saga.min.umd.js"></script>
<script src="https://unpkg.com/fractal-component@latest/dist/fractal-component.min.umd.js"></script>
<script src="https://unpkg.com/jss@9.8.7/dist/jss.min.js"></script>
<script src="https://unpkg.com/jss-preset-default@4.5.0/dist/jss-preset-default.min.js"></script>
<script src="https://unpkg.com/@fractal-components/counter@latest/dist/@fractal-components/counter.min.umd.js"></script>
</head>
<body>
<div id="app_root"></div>
<script type="text/babel">
FractalComponent.AppContainerUtils.createAppContainer({
reduxDevToolsDevOnly: false
});
ReactDOM.render(<Counter.default />, document.getElementById("app_root"));
</script>
</body>
</html>
You can also use it as ES6 module:
import "@babel/polyfill";
import React from "react";
import ReactDOM from "react-dom";
import { AppContainerUtils } from "fractal-component";
import Counter, { actions, actionTypes} from "@fractal-components/counter";
AppContainerUtils.createAppContainer({
reduxDevToolsDevOnly: false
});
ReactDOM.render(<Counter />, document.getElementById("root"));
None
actions.increaseCount()
to create actionFAQs
A sample UI component built using `fractal-component`
The npm package @fractal-components/counter receives a total of 4 weekly downloads. As such, @fractal-components/counter popularity was classified as not popular.
We found that @fractal-components/counter 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.