export function fetchData() {
  const data = 'This is example data';

  return {
    type: 'example_data',
    payload: data
  }
}

@@ -1,8 +1,137 @@
+import axios from 'axios';%0A%0A// List of all opps%0Aexport const FETCH_OPPS = 'fetch_opps';%0A%0Aconst ROOT_URL = 'localhost:8080/api';%0A%0A
 export f
@@ -164,37 +164,42 @@
 nst 
-data = 'This is example data'
+request = axios.get(%60$%7BROOT_URL%7D%60)
 ;%0A%0A 
@@ -222,22 +222,18 @@
 pe: 
-'example_data'
+FETCH_OPPS
 ,%0A  
@@ -247,12 +247,15 @@
 ad: 
-data
+request
 %0A  %7D

Add fetchData() action