Basic Domain Model
Without any plugins, the Reactium framework comes with these fundamental building-block artifacts. Use them to quickly start building DDD functionality.
TLDR;
npx reactium component # and follow the promptsBasic Artifacts
route.js
import { MyComponent } from './MyComponent';
export default {
id: 'MyComponent-route-string-unique',
path: ['/test'],
exact: true,
component: MyComponent,
order: 0,
// optional route transition controls
transitions: false, // defaults to false
transitionStates: [
{
active: 'previous',
state: 'EXITING',
},
{
active: 'current',
state: 'LOADING',
},
{
active: 'current',
state: 'ENTERING',
},
{
active: 'current',
state: 'READY',
},
];
};<Component>.jsx
_reactium-style.scss
Directory
Suffix
Priority
reactium-hooks.js
domain.js
services.js
reactium-boot.js
test.js
Last updated