0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-09 13:42:38 +00:00

Updating to user create-react-class

This commit is contained in:
Scott Tolksdorf
2018-04-08 23:52:35 -04:00
committed by Trevor Buckner
parent 47429d804a
commit 907dbe4416
35 changed files with 77 additions and 42 deletions

View File

@@ -1,4 +1,5 @@
const React = require('react');
const createClass = require('create-react-class');
const _ = require('lodash');
const cx = require('classnames');
@@ -11,7 +12,7 @@ const RenderWarnings = require('homebrewery/renderWarnings/renderWarnings.jsx');
const PAGE_HEIGHT = 1056;
const PPR_THRESHOLD = 50;
const BrewRenderer = React.createClass({
const BrewRenderer = createClass({
getDefaultProps : function() {
return {
text : '',