Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@dailybeast/mobiledoc-react-renderer
Advanced tools
Mobiledoc server and client rendering for Mobiledoc-kit.
This renderer is used across www.thedailybeast.com to perform both client and server rendering of our React app. It supports rendering of markups, atoms, cards and custom sections of any mobiledoc (0.3.0 or greater).
This renderer is intended to be used from react components, for example:
import PropTypes from 'prop-types';
import { Component } from 'react';
import MobiledocReactRenderer from 'mobiledoc-react-renderer';
const mobiledoc = {
"atoms": [],
"cards": [],
"markups": [],
"sections": [
[
1,
"p",
[
[0, [], 0, "Hello world!"]
]
]
],
"version": "0.3.0"
};
export default class Mobiledoc extends Component {
static propTypes = {
mobiledoc: PropTypes.object.isRequired
};
constructor(props) {
super(props);
const options = { atoms: [], cards: [], markups: [] };
this.renderer = new MobiledocReactRenderer(options);
}
render() {
return this.renderer.render(this.props.mobiledoc);
}
}
To run the unit tests use: npm test
FAQs
Mobiledoc renderer that outputs valid react jsx
The npm package @dailybeast/mobiledoc-react-renderer receives a total of 0 weekly downloads. As such, @dailybeast/mobiledoc-react-renderer popularity was classified as not popular.
We found that @dailybeast/mobiledoc-react-renderer 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
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.