File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed 
packages/cycle-scripts/template/src Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11module . exports  =  replacements  =>  `${ replacements . import }  
22
3+ const initalState = { count: 0 } 
4+ 
35export function App (sources) { 
46  const action$ = intent(sources.DOM) 
57  const model$ = model(action$) 
@@ -11,8 +13,6 @@ export function App (sources) {
1113  return sinks 
1214} 
1315
14- const initalState = { count: 0 } 
15- 
1616function intent(DOM) { 
1717  const add$ = DOM.select('.add').events('click') 
1818    .${ replacements . mapTo }  
Original file line number Diff line number Diff line change 11module . exports  =  replacements  =>  `${ replacements . import }  
22${ replacements . typeImport } 
33import { DOMSource, VNode } from '@cycle/dom' 
4- import { Sources, Sinks, Reducer  } from './interfaces' 
4+ import { Sources, Sinks } from './interfaces' 
55
66export type AppState = { 
7-   count : number;  
7+   count : number 
88} 
99export type AppReducer = (prevState : AppState) => AppState 
1010
11+ const initalState : AppState = { count: 0 } 
12+ 
1113export function App({ DOM } : Sources) : Sinks { 
1214  const action$ : ${ replacements . streamType }  
1315  const model$ : ${ replacements . streamType }  
@@ -18,8 +20,6 @@ export function App({ DOM } : Sources) : Sinks {
1820  } 
1921} 
2022
21- const initalState : AppState = { count: 0 } 
22- 
2323function intent(DOM : DOMSource) : ${ replacements . streamType }  
2424  const add$ = DOM.select('.add').events('click') 
2525    .${ replacements . mapTo }  
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments