title: React Action Creator and Action Type Naming Convention?
body: <p>Are there any official naming convention on naming action creators and action.types</p>
  <p>Looking over tutorials the theme of the action creator and action type is to name the action type pretty much one to one with action creator.</p>
  <p>To use an example lets say we have an application fetching blog posts</p>
  <p>The tutorial (top rated Udemy tutorial) used the following naming convention with asynchronous action creator:</p>
  <pre><code>export const fetchPosts = () =&gt; async dispatch =&gt; {
      const response = await postsAPI.get('/posts');
  
      dispatch({type: 'FETCH_POSTS', payload: response.data});
  };
  </code></pre>
  <p>However, wouldnt it make more sense to name the action objects more precisely (to signify success or failure) to what is being dispatched. Rather than matching action creator function name with action type, along the lines of:</p>
  <pre><code>export const fetchPosts = () =&gt; async dispatch =&gt; {
      const response = await postsAPI.get('/posts');
      
      if (response.status === 200) {
         dispatch({type: 'FETCHED_POSTS', payload: response.data});
      } else {
          dispatch({type: 'FAILED_TO_FETCH_POSTS', payload: response});
      }
  };
  </code></pre>