antd-mobile-ssr
antd-mobile for SSR.
If you are finding a web friendly version. Please invist antd-mobile-web
Install
npm i antd-mobile-ssr --save-dev
Follow official doc setup .babelrc
Reference css in your html page head. This is the easiest way to skip server render css issues.
Then import components
How it work
This repo base on antd-mobile-web. It copy 'antd-mobile/lib' to root path. Then move '.web.js' to '.js'. Replace require(.web)
. Remove '.css' '.less' '.svg' and 'demo'.
Because this package dependencies antd-mobile. So you don't need install it again.
Icon
component.
Special I modify react-fontawesome to replace it. So that you dont worry about how to render SVG on server side.