# first Terminal (here you will get parsing errors)
npm run transpile
# seconds Terminal (here you will get serving errors)
npm run serve
Your_first_component
create new file HelloWorld.js in pages folder
// ./pages/HelloWorld.js// all js files should starts with the following lineimportMinifrom"../../Mini/lib";functionHelloWorld(){return(<h1>Hello World</h1>);}exportdefaultHelloWorld
Routes
// main.jsimportMinifrom"../Mini/lib";importHelloWorldfrom"./pages/HelloWorld";functionMain(){return(<>{/* means default path for all routes if not found */}<Mini.Routespath="*"element={HelloWorld}/></>);}Mini.render(<Main/>,document.getElementById("app"));
// ./pages/SayMyName.jsimportMinifrom"../../Mini/lib";import"./SayMyName.css";functionSayMyName({ name }){return(<><h1>Say My name: {name}</h1></>);}exportdefaultSayMyName;
importMinifrom"../../Mini/lib";importSayMyNamefrom"./SayMyName";functionHelloWorld(){return(<><SayMyNamename={"Heisenberg"}/><h1>You're goddamn right </h1></>);}exportdefaultHelloWorld;
// ./pages/SayMyName.jsimportMinifrom"../../Mini/lib";import"./SayMyName.css";functionSayMyName({ name }){return(<><h1className="_name">Say My name: {name}</h1></>);}exportdefaultSayMyName;
functionCoponent(){constcheck=(event)=>{console.log("event is ",event);}return(<divonmouseover={()=>check("mouse over")}onmouseout={()=>check("mouse out")}></div>);}