Created
October 27, 2018 08:57
-
-
Save vojtatranta/b298920ea37e8b713ee20768c750b356 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default (fetch, appConfig) => ({ | |
getWords: input => fetch(`${appConfig.apiUrl}/words/?input=${input}`) | |
}) | |
// předání do root komponenty | |
export default class App extends React.PureComponent<null> { | |
render() { | |
return <RootContainer api={createApi(fetch, appConfig)} /> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment