Skip to content
Snippets Groups Projects
Commit 698e838c authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Use PureComponent for performance boost on libraries

parent 36a48eff
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ const costumeLibraryContent = require('../lib/libraries/costumes.json');
const LibraryComponent = require('../components/library/library.jsx');
class CostumeLibrary extends React.Component {
class CostumeLibrary extends React.PureComponent {
constructor (props) {
super(props);
bindAll(this, [
......
......@@ -9,7 +9,7 @@ const soundIcon = require('../components/asset-panel/icon--sound.svg');
const soundLibraryContent = require('../lib/libraries/sounds.json');
class SoundLibrary extends React.Component {
class SoundLibrary extends React.PureComponent {
constructor (props) {
super(props);
bindAll(this, [
......
......@@ -7,7 +7,7 @@ const spriteLibraryContent = require('../lib/libraries/sprites.json');
const LibraryComponent = require('../components/library/library.jsx');
class SpriteLibrary extends React.Component {
class SpriteLibrary extends React.PureComponent {
constructor (props) {
super(props);
bindAll(this, [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment