An open API service indexing awesome lists of open source software.

https://github.com/rafgraph/test-exports


https://github.com/rafgraph/test-exports

Last synced: over 1 year ago
JSON representation

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.