In Birth-Registration (or any other module ) we need to import common libraries and components so we can reuse that component components in our code.
we need to import CSS , libraries , common , react components these we need to import as see in below image we need to add it into package.json.
Code Block |
---|
"@egovernments/digit-ui-css": "1.5.3", "@egovernments/digit-ui-libraries":"1.5.3", "@egovernments/digit-ui-module-common":"1.5.3", "@egovernments/digit-ui-module-br":"1.5.4", "@egovernments/digit-ui-module-dss":"1.5.3", "@egovernments/digit-ui-react-components":"1.5.3", |
...
clone Clone the github repo for other common components
Components that we are reusing -
FormComposer
...
ActionBar
...
Banner
...
Card
...
CardText
...
Loader
...
SubmitBar
...
AppContainer
...
BackButton
...
PrivateRoute
...
Icons
...
CitizenHomecard
...