The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

React Mixins

React Mixins

3:24
Mixins will allow you to apply behaviors to multiple React components.
Watch this lesson now
Avatar
egghead.io

Mixins will allow you to apply behaviors to multiple React components.

Avatar
Christopher

Hey I'd just like to know what you're using for your sublime shortcuts for the react snippets(like when you type rec to shortcut create a component)

Sorry if you've posted/explained this somewhere else!

Avatar
Joseph

https://github.com/joemaddalone/ReactSublimeSnippets

For ST3 you only need "ReactSnippets.sublime-package", for ST2 you need the entire "snippets" directory.

In reply to Christopher
Avatar
John

When following along in this lesson I had to use uppercase component names (ButtonComponent, InputComponent) to keep me from getting the dreaded "Cannot read property 'replace' of undefined" error. Apparently this is a recent change? Found problem and solution on StackOverflow.

Avatar
Bachir

Good find! got stuck on this for a while until I read your comment.
thanks!

In reply to John
Avatar
David

Yeah, thanks. I'd wish the creators would update it with a note or something, because this is part of the Pro plan and this will frustrate a ton of us. Not everyone is aware of the discussion tab.

In reply to John
Avatar
Joseph

React.createClass and mixins won't be going anywhere any time soon, but if you want a look at using higher order components in ES6: https://egghead.io/lessons/react-react-mixins-with-es6-components

In reply to Jordan
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?