How to convert html, js, css template to react.js component?-ThrowExceptions

Exception or error:

I downloaded one html template to use landing page in React.js project.
I created one react component called as “LandingPage” and routed ‘/’ in react router.

I want to convert the whole HTML landing page template into React.js component inside JSX file, not in public/index.html.

Here is the html template folder structure.

enter image description here

And here is the React.js component target where I am putting the html template.

enter image description here

I am not sure where I have to put and import js/css/font files of html template in React.js component.(Especially bootstrap.min.css and bootstrap.min.js files didn’t work well)

Anybody has a solid idea and have ever done this? Can elaborate on this?

Thanks in advance!

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *