In my react app, I have currently set hbs as view engine. My Views folder has a few hbs files.
I have the following right now in my app js
// View engine
app.engine(
'hbs',
hbs({
extname: 'hbs',
})
)
app.set('view engine', 'hbs')
The problem: I want to use a UI framework such as material UI. I need to be able to use statements such as:
import Button from '@material-ui/core/Button';
This is not possible in handlebars I think. So I need to switch all my views to javascript. How can I get rid of hbs and use javascript in my views folder for pages?
Here is my sample home hbs view:
{{> nHeader }}
<div class="fullscreen_cover cover1">
<div class="welcomer">
<h1 class="mb-3 lead">
This is my home page
</h1>
</div>
</div>
{{> footer }}