Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

literaljs

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

literaljs - npm Package Compare versions

Comparing version 1.1.6 to 1.1.61

2

build/index.js

@@ -12,3 +12,3 @@ 'use strict';

window.addEventListener('DOMContentLoaded', function () {
document.body.innerHTML = components;
document.querySelector('#' + documentNode).innerHTML = rootComponent;
});

@@ -15,0 +15,0 @@ }

{
"name": "literaljs",
"version": "1.1.6",
"version": "1.1.61",
"description": "Lightweight components using template literals.",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -19,5 +19,5 @@ # LiteralJS

`<div>
This should render like React.
This should render.
<p>Isn't this lovely?</p>
${otherComponent}
${secondComponent}
</div>`

@@ -32,3 +32,3 @@ );

Literal.Render(firstComponent);
Literal.Render(firstComponent, 'app');
</script>

@@ -43,3 +43,3 @@ </body>

```
```js
Literal.Component(

@@ -57,8 +57,8 @@ `<p class="corn">

```
```js
var firstComponent = Literal.Component(
`<div>
This should render like React.
<p>Isn't this lovely?</p>
${secondComponent}
This should render like React.
<p>Isn't this lovely?</p>
${secondComponent}
</div>`

@@ -76,6 +76,6 @@ );

```js
Literal.Render(RootComponent, 'app');
```
Literal.Render(MainComponent);
```
The Render method takes the main parent component of your app.
The Render method takes the main parent component of your app and `id` of DOM node you want to attach the markup to.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc