https://github.com/rafgraph/test-exports
https://github.com/rafgraph/test-exports
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/rafgraph/test-exports
- Owner: rafgraph
- License: mit
- Created: 2016-05-20T23:53:40.000Z (about 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2020-09-11T19:13:01.000Z (over 5 years ago)
- Last Synced: 2025-01-08T17:27:40.247Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://test-exports.rafgraph
- Size: 211 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Test Exports
[Live test](https://test-exports.rafgraph.dev)
A simple test to check exports.
- A function that is invoked on export is evaluated only once when imported. The very same function that is exported as a function, is invoked each time it is called in the imported file.
- An object exports a reference to itself. When that object is imported in multiple places in different components, they all reference the same object. When the state of the exported object changes, it changes in every place that imported it.