react-native-windows-samples
react-native-windows-samples copied to clipboard
Define promise-like/callbacks in the docs
We should:
- Define what a callback is. Is it strictly a
void (*) ()
? astd::function
? is it anything with anoperator()
? - What types they take/return
- What the difference between 1 or 2 is
- When you would use a callback, two callbacks or a promise
Originally posted by @asklar in https://github.com/microsoft/react-native-windows-samples/pull/280#discussion_r498583420
The default path is more complicated than it may need to be (powerful, but confusing). We may have plans to streamline this, but in the meantime we need to document what we have.