0.400.0-dev.9 • Published 9 months ago
@leosprograms/syn-core v0.400.0-dev.9
@leosprograms/syn-core
Core package to easily build syn Holochain applications.
Installing
Install the necessary dependencies:
npm install @holochain-open-dev/profiles @leosprograms/syn-coreUsage
First, you need to have instantiated a SynStore from @leosprograms/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 '@leosprograms/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 @leosprograms/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 .
0.400.0-rc.1
1 year ago
0.400.0-rc.3
1 year ago
0.400.0-rc.2
1 year ago
0.400.0-rc.5
1 year ago
0.400.0-rc.4
1 year ago
0.400.0-rc.6
1 year ago
0.400.0-dev.6
9 months ago
0.400.0-dev.7
9 months ago
0.400.0-dev.8
9 months ago
0.400.0-dev.9
9 months ago
0.400.0-dev.3
9 months ago
0.400.0-dev.4
9 months ago
0.400.0-dev.5
9 months ago
0.400.0-rc.0
1 year ago
0.300.3
1 year ago
0.300.2
1 year ago
0.300.1
1 year ago
0.300.0
1 year ago