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

react-live

Package Overview
Dependencies
Maintainers
4
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-live - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "react-live",
"version": "2.0.0",
"version": "2.0.1",
"description": "A production-focused playground for live editing React code",

@@ -5,0 +5,0 @@ "main": "dist/react-live.cjs.js",

@@ -58,3 +58,3 @@ import React, { Component, Fragment } from 'react';

render() {
const { style, code: _, ...rest } = this.props;
const { style, code: _code, onChange, language, ...rest } = this.props;
const { code } = this.state;

@@ -61,0 +61,0 @@

@@ -67,8 +67,14 @@ import React, { Component } from 'react';

componentDidUpdate({ code, scope, noInline, transformCode }) {
componentDidUpdate({
code: prevCode,
scope: prevScope,
noInline: prevNoInline,
transformCode: prevTransformCode
}) {
const { code, scope, noInline, transformCode } = this.props;
if (
code !== this.props.code ||
scope !== this.props.scope ||
noInline !== this.props.noInline ||
transformCode !== this.props.transformCode
code !== prevCode ||
scope !== prevScope ||
noInline !== prevNoInline ||
transformCode !== prevTransformCode
) {

@@ -75,0 +81,0 @@ this.transpile({ code, scope, transformCode, noInline });

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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