はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    ブラックフライデー

『Dave Ceddia』

  • 人気
  • 新着
  • すべて
  • React State Management Libraries and How to Choose

    12 users

    daveceddia.com

    The idea of state is one of the trickier things to nail down when you’re starting with React, and as your app grows, so do your state management needs. In this post I’ll give you the Grand Tour of state management options in React and help you decide which one to use in your project. What is State? Just so we’re on the same page, let’s talk about state for a second. Every interactive app involves

    • テクノロジー
    • 2021/03/27 10:37
    • react
    • redux
    • JavaScript
    • library
    • article
    • matome
    • あとで読む
    • When to useLayoutEffect Instead of useEffect (example)

      16 users

      daveceddia.com

      There are two React hooks, useEffect and useLayoutEffect, that appear to work pretty much the same. The way you call them even looks the same. useEffect(() => { // do side effects return () => /* cleanup */ }, [dependency, array]); useLayoutEffect(() => { // do side effects return () => /* cleanup */ }, [dependency, array]); But they’re not quite the same. Read on for what makes them different and

      • テクノロジー
      • 2020/01/01 09:53
      • React
      • あとで読む
      • Introduction to Svelte

        5 users

        daveceddia.com

        A few months ago, Svelte 3 was released. I tried it out, ran through their tutorial, and built a few small things. And I can honestly say that I think writing Svelte feels even faster and easier than React. Svelte gave me the same spark, the same feeling of “wow!” that I had with React. In this post I want to tell you a bit about Svelte, show you how it works with a few live example apps, and poin

        • テクノロジー
        • 2019/07/30 15:24
        • svelte
        • library
        • UI
        • article
        • JavaScript
        • app
        • css
        • it
        • A Complete React Redux Tutorial for Beginners (2019)

          17 users

          daveceddia.com

          Trying to understand Redux, it’s really confusing how it all works. Especially as a beginner. So much terminology! Actions, reducers, action creators, middleware, pure functions, immutability, thunks… How does it all fit together with React to make a working app? You can spend hours reading blogs and trying to sift through complex “real world” apps trying to piece it together. In this Redux tutori

          • テクノロジー
          • 2019/03/12 09:19
          • redux
          • react
          • JavaScript
          • techfeed
          • tutorial
          • あとで読む
          • 4 Examples of the useState Hook

            5 users

            daveceddia.com

            There are a bunch of React hooks, but useState is the workhorse. It’s the one you’ll use most often. Here we’ll cover useState with simple types, as well as useState with objects and arrays. We’ll also see a couple ways of storing multiple values. FYI if you’re brand new to React, I suggest pausing here and reading my React tutorial first – it covers all the important basics – and then come back h

            • テクノロジー
            • 2018/12/18 09:54
            • How the useEffect Hook Works (with Examples)

              8 users

              daveceddia.com

              The useEffect hook is the Swiss Army knife of all the hooks. It’s the solution to many problems: how to fetch data when a component mounts, how to run code when state changes or when a prop changes, how to set up timers or intervals, you name it. Pretty much anything you want to “do” in a React component other than return JSX (any sort of side effect), will go into a useEffect. (and you can have m

              • テクノロジー
              • 2018/11/04 21:01
              • react
              • あとで読む
              • Where and When to Fetch Data With Redux

                3 users

                daveceddia.com

                If a component needs data in order to render, and you want to fetch that data with Redux and keep it in the Redux store, when is the best time to make that API call? tl;dr – Kick off the action in the componentDidMount lifecycle hook Making API Calls with Redux Let’s imagine you want to display a list of products. You’ve got a backend API that answers to GET /products, so you create a Redux action

                • 学び
                • 2018/09/04 23:07
                • Redux vs. The React Context API

                  36 users

                  daveceddia.com

                  React 16.3 added a new Context API – new in the sense that the old context API was a behind-the-scenes feature that most people either didn’t know about, or avoided using because the docs said to avoid using it. Now, though, the Context API is a first-class citizen in React, open to all (not that it wasn’t before, but it’s, like, official now). As soon as React 16.3 came out there were articles al

                  • テクノロジー
                  • 2018/07/25 08:16
                  • React
                  • redux
                  • jQuery
                  • techfeed
                  • article
                  • あとで読む
                  • Learn to think in React | Pure React

                    18 users

                    daveceddia.com

                    Learn to think in ReactYou don't know React.But not for lack of trying! Tutorials, books, courses, podcasts, blog posts… you've done 'em all, or you've tried to. You've followed along, and sure, it made at least some kind of sense while you were assiduously reproducing each step, but just when you reach the end, everything you supposedly learned just… slips… from your mind into a vast, grey nothin

                    • テクノロジー
                    • 2017/11/18 15:01
                    • react
                    • ajax
                    • javascript
                    • book
                    • How Redux Works: A Counter-Example

                      11 users

                      daveceddia.com

                      After learning a bit about React and getting into Redux, it’s really confusing how it all works. Actions, reducers, action creators, middleware, pure functions, immutability… Most of these terms seem totally foreign. So in this post we’re going to demystify how Redux works with a backwards approach and a very simple React + Redux example that I think will help your understanding. As in the what do

                      • テクノロジー
                      • 2017/11/18 14:59
                      • redux
                      • react
                      • tutorial
                      • article
                      • JavaScript
                      • あとで読む
                      • Cheat to Win: Learn React with Copywork

                        3 users

                        daveceddia.com

                        So you’ve built a few TODO apps. Ok, a lot of TODO apps. After the 35th one you’ve started to wonder if React can even do anything else. What’s the “next level” in terms of learning? How can you go about getting better at React? In this post I want to tell you about copywork and how it can give you limitless ideas for practice apps and help you improve. What is Copywork? I first heard the term fro

                        • テクノロジー
                        • 2017/06/28 01:57
                        • Deploy React and Express to Heroku

                          4 users

                          daveceddia.com

                          Updated May 18, 2018 You’ve got a React app, and an API server written in Express or something else. Now – how do you deploy them both to a server? There are a few ways to do this: Keep them together – Express and React files sit on the same machine, and Express does double duty: it serves the React files, and it also serves API requests. e.g., a DigitalOcean VPS running Express on port 80 Split t

                          • テクノロジー
                          • 2017/06/13 22:32
                          • Create React App with an Express Backend

                            6 users

                            daveceddia.com

                            If you haven’t heard of it yet, Create React App is an awesome way to get started with React. It creates a project structure for you, all set up and ready to go. You get to skip the configuration of Webpack and Babel, and get right down to writing your app. But what if your app isn’t purely frontend? What if you need to connect to a backend server? Create React App has you covered. In this post we

                            • テクノロジー
                            • 2017/04/21 21:15
                            • react
                            • あとで読む
                            • Where to Fetch Data: componentWillMount vs componentDidMount

                              11 users

                              daveceddia.com

                              When you need to fetch some data for a React component, where do you do it? This question comes up all the time. There are two common places to fetch data in class components, and both are lifecycle methods: componentWillMount componentDidMount With the addition of React Hooks, there’s a new place to fetch data with the useEffectHook. Read that article for more on useEffect; in this article I’ll f

                              • テクノロジー
                              • 2017/03/22 21:38
                              • react
                              • javascript
                              • あとで読む
                              • Roll the Dice: Random Numbers in Redux

                                3 users

                                daveceddia.com

                                How would I model calling something like Math.random() in Redux’s world? One of the tenets of Redux is that reducer functions must be pure. What about when you want to do something impure, like generate a random number, or get the current date? Recap: What’s a Pure Function? A pure function is one that follows these rules: No side effects – it can’t change anything outside the function’s scope (th

                                • 世の中
                                • 2017/02/22 19:01
                                • あとで読む
                                • Watch Out for Undefined State

                                  8 users

                                  daveceddia.com

                                  Is your React component not rendering? Quick quiz: When a React component loads data from the server in componentWillMount like this one below, what will it render? Original photo by Jay Galvin class Quiz extends Component { componentWillMount() { axios.get('/thedata').then(res => { this.setState({items: res.data}); }); } render() { return ( <ul> {this.state.items.map(item => <li key={item.id}>{it

                                  • テクノロジー
                                  • 2017/01/25 10:07
                                  • react
                                  • javascript
                                  • tips
                                  • AJAX Requests in React: How and Where to Fetch Data

                                    9 users

                                    daveceddia.com

                                    One of the first questions new React developers have is, “How do I do AJAX requests in React?” a.k.a. “How do I make API calls in React?” Here’s an answer to that question. First: React itself doesn’t have any allegiance to any particular way of fetching data. In fact, as far as React is concerned, it doesn’t even know there’s a “server” in the picture at all. React simply renders components, usin

                                    • テクノロジー
                                    • 2016/09/16 18:30
                                    • react
                                    • ajax
                                    • javascript
                                    • tips
                                    • Don't Use Bind When Passing Props

                                      8 users

                                      daveceddia.com

                                      There are many situations when writing React where you’ll want to pass a function to a prop. Usually it’s to pass a callback down to a child component so that the child can notify the parent of some event. It’s important to keep in mind the binding of the function – what its this object will point to when it’s called. There are a few ways to make sure the binding is correct, some better than other

                                      • テクノロジー
                                      • 2016/07/07 09:00
                                      • react
                                      • React: ES5 (createClass) or ES6 (class)?

                                        3 users

                                        daveceddia.com

                                        When writing React, should you use the React.createClass syntax or the ES6 class syntax? Or maybe neither? This post will explain some of the differences and help you decide. React can be written perfectly well in either ES5 or ES6. Using JSX means that you’ll need a “build” step already, where Babel transpiles the JSX into React.createElement calls. Many people take advantage of this and just tac

                                        • テクノロジー
                                        • 2016/06/19 23:01
                                        • A Complete React Tutorial for 2020

                                          32 users

                                          daveceddia.com

                                          Learning React is tough. It seems there’s a lot to learn at once. You might even think that “learning React” means that you have to also learn about Redux, Webpack, React Router, CSS in JS, and a pile of other stuff. This article is designed for total beginners to React, as well as folks who’ve tried to learn in the past but have had a tough time. I think I can help you figure this out. Here’s wha

                                          • テクノロジー
                                          • 2016/05/03 12:43
                                          • react
                                          • あとで読む
                                          • tutorial
                                          • it

                                          このページはまだ
                                          ブックマークされていません

                                          このページを最初にブックマークしてみませんか?

                                          『Dave Ceddia』の新着エントリーを見る

                                          キーボードショートカット一覧

                                          j次のブックマーク

                                          k前のブックマーク

                                          lあとで読む

                                          eコメント一覧を開く

                                          oページを開く

                                          はてなブックマーク

                                          • 総合
                                          • 一般
                                          • 世の中
                                          • 政治と経済
                                          • 暮らし
                                          • 学び
                                          • テクノロジー
                                          • エンタメ
                                          • アニメとゲーム
                                          • おもしろ
                                          • アプリ・拡張機能
                                          • 開発ブログ
                                          • ヘルプ
                                          • お問い合わせ
                                          • ガイドライン
                                          • 利用規約
                                          • プライバシーポリシー
                                          • 利用者情報の外部送信について
                                          • ガイドライン
                                          • 利用規約
                                          • プライバシーポリシー
                                          • 利用者情報の外部送信について

                                          公式Twitter

                                          • 公式アカウント
                                          • ホットエントリー

                                          はてなのサービス

                                          • はてなブログ
                                          • はてなブログPro
                                          • 人力検索はてな
                                          • はてなブログ タグ
                                          • はてなニュース
                                          • ソレドコ
                                          • App Storeからダウンロード
                                          • Google Playで手に入れよう
                                          Copyright © 2005-2025 Hatena. All Rights Reserved.
                                          設定を変更しましたx