react-live
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -212,3 +212,3 @@ 'use strict'; | ||
if (code !== this.props.code) { | ||
var html = (0, _prism2.default)((0, _normalizeCode2.default)(this.props.code)); | ||
var html = (0, _prism2.default)((0, _normalizeCode2.default)(code)); | ||
this.setState({ html: html }); | ||
@@ -215,0 +215,0 @@ } |
{ | ||
"name": "react-live", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "A production-focused playground for live editing React code", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -187,3 +187,3 @@ import React, { Component } from 'react' | ||
if (code !== this.props.code) { | ||
const html = prism(normalizeCode(this.props.code)) | ||
const html = prism(normalizeCode(code)) | ||
this.setState({ html }) | ||
@@ -190,0 +190,0 @@ } |
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
1325380