Download the code & run npm install to install dependencies before starting the app.
You'll also need to install Material UI as a dependency. To do this run npm install @material-ui/core
For anyone who has a problem when he runs npm install
, it's caused by installing old packages.
The best solution for this is to recreate the project with new packages, I've created the project again using the Vite server, and installed the correct dependencies such as react-router-dom... to start peacefully :)
For anyone who needs the starter project, you can find it in this repo My project, and download the project in the starter branch :D
Happy coding ๐
Hi,
Your tutorials are excellent. I want to follow along but the package.json is out of date, so it fails. Is there any way to install everything using the latest versions? Or by updating the package.json?
Thank you for all the hard work.
Matt
Failed to compile
./src/index.js 1:44
Module parse failed: Unexpected token (1:44)
File was processed with these loaders:
$RefreshRuntime$ = require('C:/Users/rudrak'sPC/Desktop/react-projects/material-ui/material-ui-tut/node_modules/react-refresh/runtime.js');
|$RefreshSetup$ (module.id);
|
Hey there. In Layout component, you have given the class of display flex to the parent div. So we can take advantage of that and display the Appbar in the div where {children} are rendered. By default the position property of Appbar is set to fixed so we explicitly provide the Appbar component the position prop of relative to make sure it is fitting inside the parent container. It did the job for me saving me quite a lot of code.
If this approach has any bugs, please mention it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.