Coder Social home page Coder Social logo

react-vite-template's Introduction

React 开发模板

架构设计

Vite+React+TypeScript+Antd+Shadcn/UI+React-Router

插件

  • axios:网络请求
  • react-router-dom:路由
  • dayjs:时间处理
  • lodash:工具库
  • swr:数据请求
  • antd:UI 组件
  • ahooks:React Hooks 库
  • react-icons:图标库
pnpm install react-icons --save
  • iconify:支持各种 svg 图标
pnpm install --save-dev @iconify/react
  • react-type-animation:文字动画
pnpm install react-type-animation
  • tailwindcss-animated:动画

参考网站:TailwindCSS 动画配置

pnpm install tailwindcss-animated

tailwind.config.js中配置

module.exports = {
  // ...
  plugins: [require("tailwindcss-animated")],
};

问题解决

Antd 与 TailwindCSS 冲突

Antd 兼容三方样式库

@layer tailwind-base, antd;

@layer tailwind-base {
  @tailwind base;
}
@tailwind components;
@tailwind utilities;

react-vite-template's People

Contributors

ssrskl 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.