GithubHelp home page GithubHelp logo

installasi-react's Introduction

Tools Install React JS

๐Ÿš€ About React JS

The React Framework for Production Next.js gives you the best developer experience with all the features you need for production: hybrid static & server rendering, TypeScript support, smart bundling, route pre-fetching, and more. No config needed.

Install Vite React

npm create vite@latest nama-project -- --template react
  • Install node.module
 npm install

Formatter pritter code

npm install --save-dev --save-exact prettier
  • Buat folder di root
.prettierrc.json
  • Masukan isi .prittierrc.json
{
"tabWidth": 4,
"singleQuote": true,
"jsxSingleQuote": true,
"semi": true,
"printWidth": 150,
"bracketSpacing": true,
"braceSameLine": true
}

  • command di terminal
npx prettier --write .
  • edit package json . di script tambahkan
"format": "prettier --write .",
  • untuk menjalankan di terminal
npm run format
  • Ketik kode di terminal
npm install -D tailwindcss postcss autoprefixer
  • Ketik di terminal
npx tailwindcss init -p
  • copy script bawah ke tailwind.config.js ke isi content
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],

  • copy script bawah ke index.css dan hapus semua isi sebelumnya dan hapus "app.css"
@tailwind base;
@tailwind components;
@tailwind utilities;

  • kemudian import './index.css'; di main.js
import './index.css';

Running React JS with Tailwind

Install my-project with npm

  npm run dev

Install my-project with yarn

  yarn dev
  • Untuk membuka di browser
http://localhost:5173/

๐Ÿš€ About Me

Saya adalah seorang Front End Developer yang ingin terus belajar dan mengembangkan diri. Saya juga ingin berbagi ilmu yang saya dapatkan melalui tulisan di blog saya lambangsasangka.com.

Logo

Support

For support, email [email protected].

installasi-react's People

Contributors

salak96 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.