Start typing to search...
No results for ""
Let’s make your first change to KiviCare and watch Hot Module Replacement (HMR) in action.
Make sure:
npm run devWe’ll modify the Dashboard homepage.
File:app/dashboard/views/dashboard/Dashboard.jsx
app/dashboard/views/dashboard/Locate the main heading and update it.
Before
<h1>Dashboard</h1>
After
<h1>Dashboard - Custom Extended Version</h1>
<p>Welcome to my customized KiviCare installation!</p>
What happened behind the scenes?
This is the power of Hot Module Replacement.
Now let’s style the section.
File:app/dashboard/assets/scss/custom.scss
Add:
.custom-welcome {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 2rem;
border-radius: 12px;
margin-bottom: 2rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
h1 {
color: white;
margin-bottom: 0.5rem;
}
p {
color: rgba(255, 255, 255, 0.9);
font-size: 1.1rem;
}
}
Update your JSX:
<div>
<h1>Dashboard - Custom Extended Version</h1>
<p>Welcome to my customized KiviCare installation!</p>
</div>
Save and view the styled result instantly.
Let’s add a button with a toast message.
import React, { useState } from 'react';
import { Button } from 'react-bootstrap';
import { toast } from 'react-toastify';
const handleWelcome = () => {
toast.success('Welcome to KiviCare Extended Version!');
};
return (
<div>
<h1>Dashboard - Custom Extended Version</h1>
<p>Welcome to my customized KiviCare installation!</p>
<Button>
Click to Welcome yourself!
</Button>
</div>
);
Save and click the button to test.
Ctrl + Cnpm run build
This generates optimized files inside dist/.
With the dev server stopped:
dist/ (not localhost:8080)npm run dev
npm run build
dist/__() for translatable stringsreact-bootstrap componentsChanges not visible?
HMR not working?
vite.config.jsBuild failing?
npm run lintYou’ve now:
Start typing to search...
No results for ""