Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@coorpacademy/components
Advanced tools
This library provide sharable components for web applications, either :
sitejekyll.coorpacademy.com
@todo
list npm run
scripts
npm install
npm start
Then open http://localhost:3000
/lib
in a projectnpm link
to create a local @coorpacademy/components
packagenpm link @coorpacademy/components
in your project.@todo
example + howto
npm version patch|minor|major
git push --tags
hyperscript
function, the cloning, and the vtree resolving.import engine from '../../src/engine/virtual-dom';
import createElement from './element';
const Element = createElement(engine, options);
Element
being something like:
export default ({h}) => (props, children) => (
<p>
{children}
</p>
)
@todo
explain engine.resolve
and engine.walker(engine.resolve)
It's possible to enhance a Component
by applying a specific behaviour on it.
Alike every Component
, this behaviour is a kind of MetaComponent
, created with the engine
and 'wrapped' around the Component
to enhance.
const Component = createComponent(engine, options)
const CustomBehaviour = createCustomBehaviour(engine, options)
<CustomBehaviour>
<Component>
</Component>
</CustomBehaviour>
Wrappers
allow to modify the child's props.
<ForceColor {color: 'red'}>
<Component {color: 'blue'}>
</Component>
</ForceColor>
With this kind of Wrapper
, the Component
will have its blue
props.color overriden by the red
value.
Behaviours
allow to modify a child's behaviour, like its style
It's the same job as wrappers
but applying the modification directly on the resolved vTree.
With a Behaviour
the previous example would become :
const Component = createComponent(engine, options)
const RedColor = createRedColor(engine, options)
<RedColor>
<Component>
</Component>
</RedColor>
Here the Component
props.style.color
will be set by the Behaviour
.
Both Wrappers
and Behaviours
may be used as decorator to allow smaller, readable jsx
:
const Component = createComponent(engine, options)
const RedColor = createRedColor(engine, options)
const RedComponent = RedColor.decorate(Component);
<RedComponent>
</RedComponent>
Here the RedComponent
is exactly the same as the previous example for Behaviour
.
FAQs
This library provide sharable components for web applications, either :
The npm package @coorpacademy/components receives a total of 2,226 weekly downloads. As such, @coorpacademy/components popularity was classified as popular.
We found that @coorpacademy/components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 17 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.