Skip to content
By using Twitter’s services you agree to our Cookies Use. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.

This is the legacy version of twitter.com. We will be shutting it down on June 1, 2020. Please switch to a supported browser, or disable the extension which masks your browser. You can see a list of supported browsers in our Help Center.

  • Home Home Home, current page.
  • About

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
sebmck's profile
Sebastian
Sebastian
Sebastian
Verified account
@sebmck

Tweets

SebastianVerified account

@sebmck

JavaScript boy and “lovely thoughtleader” ⌨️ he/him ♂️

 ✨
Joined April 2011

Tweets

  • © 2020 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Imprint
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    1. Ryan Florence‏ @ryanflorence 10 Mar 2019
      • Report Tweet
      • Report NetzDG Violation
      Replying to @sebmarkbage

      Yeah, been thinking on that a bit. Most HoCs today seem to take inputs when you create it: export default withMedia(query)(Comp) But with this idea you don't have static inputs like that, only dynamic, so the wrapper and the inner component will just have to share props.

      1 reply 0 retweets 2 likes
    2. Ryan Florence‏ @ryanflorence 10 Mar 2019
      • Report Tweet
      • Report NetzDG Violation
      Replying to @ryanflorence @sebmarkbage

      If its a tradeoff you don't want to make I suppose you can just wrap the render prop version in your own HoC implementation.

      1 reply 0 retweets 2 likes
    3. Ryan Florence‏ @ryanflorence 10 Mar 2019
      • Report Tweet
      • Report NetzDG Violation
      Replying to @ryanflorence @sebmarkbage

      If you've got ideas, I'd love to hear them.

      3 replies 0 retweets 2 likes
    4. Sebastian Markbåge‏ @sebmarkbage 10 Mar 2019
      • Report Tweet
      • Report NetzDG Violation
      Replying to @ryanflorence

      For HOCs I like to write it out: let WithMedia = props => <SomeComp {...props} small={useMedia(“(max-width: 480px)”)} />; That way you have a function component in place to expand on and add more logic/hooks into as a partial refactor.

      1 reply 1 retweet 13 likes
    5. Sebastian Markbåge‏ @sebmarkbage 10 Mar 2019
      • Report Tweet
      • Report NetzDG Violation
      Replying to @sebmarkbage @ryanflorence

      Then you can expand on it as needed. This is a little boilerplatey once you add ref and dynamic args but now you have a foundation for a function component. let WithMedia = forwardRef(({query, ...props}, ref) => <SomeComp {...props} ref={ref} small={useMedia(query)} />;

      1 reply 1 retweet 14 likes
    6. Sebastian Markbåge‏ @sebmarkbage 10 Mar 2019
      • Report Tweet
      • Report NetzDG Violation
      Replying to @sebmarkbage @ryanflorence

      For render prop it seems pretty easy to just write it out with a snippet. let Media = ({query, children}) => children(useMedia(query));

      1 reply 1 retweet 12 likes
    7. Ryan Florence‏ @ryanflorence 11 Mar 2019
      • Report Tweet
      • Report NetzDG Violation
      Replying to @sebmarkbage

      Yeah maybe it's just as easy to write it out. There is that weird effect though of having a "thing", like hoist-react-statics. People are sometimes more likely to "do the right thing" if there's a something that does it for them, whether or not its easier.

      1 reply 1 retweet 4 likes
    8. Sebastian Markbåge‏ @sebmarkbage 11 Mar 2019
      • Report Tweet
      • Report NetzDG Violation
      Replying to @ryanflorence

      Yea I wonder if should find a way to make "snippets" be the "thing". I've been thinking this about a lot of Hooks. They get so much more complicated to expand (and harder to compile well) when they try to be overly generic.

      1 reply 1 retweet 8 likes
    9. Dan Abramov‏ @dan_abramov 11 Mar 2019
      • Report Tweet
      • Report NetzDG Violation
      Replying to @sebmarkbage @ryanflorence

      I’m working on a new doc page now. Couldn't find a good title but maybe Hooks Snippets could work!

      3 replies 0 retweets 8 likes
    10. Dan Abramov‏ @dan_abramov 11 Mar 2019
      • Report Tweet
      • Report NetzDG Violation
      Replying to @dan_abramov @sebmarkbage @ryanflorence

      I guess I like Hooks Recipes more tho

      3 replies 0 retweets 19 likes
      Sebastian‏Verified account @sebmck 11 Mar 2019
      • Report Tweet
      • Report NetzDG Violation
      Replying to @dan_abramov @sebmarkbage @ryanflorence

      Is it a recipe though? If it’s copy-and-paste then seems more analogous to a preprepared frozen pizza, which I’m not sure I’d call a recipe.

      9:19 AM - 11 Mar 2019
      • 5 Likes
      • Jose Oliveros SherylHohman Gonzalo 🇦🇷 🇳🇱 Frank Albenesius
      5 replies 0 retweets 5 likes
        1. Ryan Florence‏ @ryanflorence 11 Mar 2019
          • Report Tweet
          • Report NetzDG Violation
          Replying to @sebmck @dan_abramov @sebmarkbage

          Ingredients: 1. Tostino's Frozen Pizza 2. Ranch Dressing Directions: Follow cooking directions for pizza. Pour ranch into a small dish or the edge of your plate. Dip pizza in ranch before enjoying each bite. That's a recipe Sebastian.

          0 replies 0 retweets 9 likes
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo
        1. Dan Abramov‏ @dan_abramov 11 Mar 2019
          • Report Tweet
          • Report NetzDG Violation
          Replying to @sebmck @sebmarkbage @ryanflorence

          Copy paste and tweak! Add your signature pepperoni

          0 replies 0 retweets 7 likes
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo
        1. Sophie Alpert‏ @sophiebits 11 Mar 2019
          • Report Tweet
          • Report NetzDG Violation
          Replying to @sebmck @dan_abramov and

          I think if you’re encouraged to adapt it, it is.

          0 replies 0 retweets 2 likes
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo
        1. Josh‏ @Joshbal4 11 Mar 2019
          • Report Tweet
          • Report NetzDG Violation
          Replying to @sebmck @dan_abramov and

          tbf that's as complicated a recipe as i can manage 😅

          0 replies 0 retweets 0 likes
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo
        1. Gareth Foster‏ @Shenlok 11 Mar 2019
          • Report Tweet
          • Report NetzDG Violation
          Replying to @sebmck @dan_abramov and

          Or is it an ingredient, to be integrated into the recipe for your app 🤔

          0 replies 0 retweets 0 likes
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2020 Twitter
        • About
        • Help Center
        • Terms
        • Privacy policy
        • Imprint
        • Cookies
        • Ads info