@holochain-syn/core v0.500.0-rc.0
@holochain-syn/core
Core package to easily build syn Holochain applications.
Installing
Install the necessary dependencies:
npm install @holochain-open-dev/profiles @holochain-syn/coreUsage
First, you need to have instantiated a SynStore from @holochain-syn/store and a ProfilesStore from @holochain-open-dev/profiles.
Defining the Context Providers
// Define the <profiles-context> element
import '@holochain-open-dev/profiles/dist/elements/profiles-context.js';
// Define the <syn-context> element
import '@holochain-syn/core/dist/elements/syn-context.js';Now define the and the element and add it to your html wrapping the whole section of your page in which you are going to be placing the elements from @holochain-syn/elements:
<profiles-context id="profiles-context"> 
  <syn-context>
    <!-- The rest of your application goes here -->
  </syn-context>
</profiles-context>Connect the Store to the Context Providers
Go to this page, select the framework you are using, and follow its example in order to:
- Connect the 
ProfilesStoreto the with id="profiles-context". - Connect the 
SynStoreto the . 
11 months ago
10 months ago
11 months ago
7 months ago
8 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago