All Projects → L-x-C → isomorphic-react-with-mobx

L-x-C / isomorphic-react-with-mobx

Licence: other
React + MobX + React-Router + Express

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to isomorphic-react-with-mobx

react-typescript
A Front-End Project with Typescript/Antd. webpack5+react-router4+antd+typescript4+grahql
Stars: ✭ 63 (+21.15%)
Mutual labels:  mobx, antd
public-ol-web-template
OrangeLoops Web Project Boilerplate
Stars: ✭ 28 (-46.15%)
Mutual labels:  mobx, antd
Gank
🦅 Gank api base △ next.js (react&ssr)
Stars: ✭ 122 (+134.62%)
Mutual labels:  mobx, antd
mobxSpa
企业级SPA项目,完整开发脚手架
Stars: ✭ 96 (+84.62%)
Mutual labels:  mobx, antd
Starcabinet
🎉 开源的跨平台Github Stars管理分析工具
Stars: ✭ 399 (+667.31%)
Mutual labels:  mobx, antd
React Mobx Ts Antd
A simple empty project build with react、react-router、mobx、antd in typescript.
Stars: ✭ 53 (+1.92%)
Mutual labels:  mobx, antd
Alldemo
🍑 2020全栈学习Demo大合集 包含最新 hooks TS 等 还有umi+dva,数据可视化等实战项目 (持续更新中)
Stars: ✭ 189 (+263.46%)
Mutual labels:  mobx, antd
use-antd-resizable-header
antd表格头拖拽hook
Stars: ✭ 63 (+21.15%)
Mutual labels:  antd
wx-react-app
使用Create-React-App 和 Ant Design Pro 框架整合,演示地址:
Stars: ✭ 16 (-69.23%)
Mutual labels:  antd
feffery-antd-components
Dash + Antd = 😍
Stars: ✭ 97 (+86.54%)
Mutual labels:  antd
morphmorph
😱 Isomorphic transformations. Map, transform, filter, and morph your objects
Stars: ✭ 26 (-50%)
Mutual labels:  isomorphic
next-plugin-antd-less
🎩 Use Antd (Less) with Next.js v12, Zero Dependency on other Next-Plugins.
Stars: ✭ 338 (+550%)
Mutual labels:  antd
antd-etable
Editable Table base on Ant Design
Stars: ✭ 43 (-17.31%)
Mutual labels:  antd
ttk-app-core
前端框架(基于react+redux)
Stars: ✭ 14 (-73.08%)
Mutual labels:  antd
wizard
🍳Wizardoc is a WEBAPP for managing documents and knowledge.
Stars: ✭ 57 (+9.62%)
Mutual labels:  mobx
react-ssr-starter
🔥 ⚛️ A React boilerplate for a universal web app with a highly scalable, offline-first foundation and our focus on performance and best practices.
Stars: ✭ 40 (-23.08%)
Mutual labels:  isomorphic
hapi-react-fullstack-boilerplate
Hapi, Sequelize, React, etc.
Stars: ✭ 21 (-59.62%)
Mutual labels:  isomorphic
kaonjs
Kaon.js is a react isomorphic app solution. It contains webpack build, hot reloading, code splitting and server side rendering.
Stars: ✭ 21 (-59.62%)
Mutual labels:  isomorphic
weapp-starter-kit
No description or website provided.
Stars: ✭ 13 (-75%)
Mutual labels:  mobx
idpt
Internet-Delivered Psychological Therapy (IDPT) System.
Stars: ✭ 24 (-53.85%)
Mutual labels:  antd

isomorphic-react-with-mobx

React + MobX + React-Router (CSR & SSR)

How to use

git clone [email protected]:L-x-C/isomorphic-react-with-mobx.git
cd isomorphic-react-with-mobx
npm install

Dev (client-side rendering)

npm start
open http://localhost:3000

Production (server-side rendering)

npm run server
open http://localhost:20000

Preview

Login, Register

Login

Add item to list

List

404 page when routes not match

404

F.A.Q

How to fetch data on the server side?

Adding a onEnter function to a component

@action
static onEnter({states, pathname, query, params}) {
    progressStart();
    return Promise.all([
      menuActions.setTDK(states, '列表'),
      jobActions.fetchJobList(states, query)
    ]);
}

How to redirect on the server side?

In src/helpers/location.js, there is a redirect function, you can just import it and use. The catchErr in src/serverRender.js will catch the redirect command and redirect as you wish. It works on both server and client side.

import {redirect} from './helpers/location';

@action
static onEnter({states, query, params}) {
    redirect('http://www.xxx.com');
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].