x Vuejsの会社に勤務する、React x Firebaseに興味を持っていろいろ個人開発をして いる非エンジニア。 Web業界に入る前はPepperのアプリケーション開 発や営業、マーケティング業務などやってきた。 今は目下サービスの立ち上げとリリース後のグ ロースで挑戦している。 興味: Firebase x React x JAM stack x 一応Vue
components”. We’re now introducing the ability to use React state from these, so we prefer the name “function components”. これまでstate管理をするにはClass Componentでしかできなかったけど 昔 の Stateless Components => 現: function componentsで出来るように なったってことね!
you can think of useEffect Hook as componentDidMount, componentDidUpdate, and componentWillUnmount combined. これまでのClass ComponentにおけるLifecycle、 componentDidMount | DidUpdate | WillUnmount が簡単に使える 機能ね!
type (state, action) => newState, and returns the current state paired with a dispatch method. (If you’re familiar with Redux, you already know how this works.) ReduxでやっていたようなDispatchが必要になるState管理ができるように なるってことね