Redoc: Support for vue.js

Created on 15 Oct 2018  路  3Comments  路  Source: Redocly/redoc

Hi,

quick question. If I try to use redoc with vue.js, webpack will complain that react is missing. But I don't want to install the react components. Is there any other way of using redoc in vue.js?

Most helpful comment

Can you give me a tutorial? Whenever I install react into my vuejs project, the app page goes blank.

// Edit: Actually, give all users a tutorial :)

All 3 comments

No, ReDoc requires to React to work as it is React-based (ReDoc is a React component).

You don't need to install any react components, just react and react-dom itself.

I can just recommend you to leverage code-splitting and split ReDoc and all the deps (including React) into a separate bundle which is loaded by route.

Can you give me a tutorial? Whenever I install react into my vuejs project, the app page goes blank.

// Edit: Actually, give all users a tutorial :)

Would be very interested in a tutorial that digs into code-splitting considerations here and how it impacts page loading / bundles / etc.

Looking around for OpenAPI UI theme libs for my Vue project, and not that many decent options to choose from :/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shreyas-agnihotri picture shreyas-agnihotri  路  3Comments

JFCote picture JFCote  路  3Comments

RomanHotsiy picture RomanHotsiy  路  3Comments

gavinkalika picture gavinkalika  路  3Comments

RamakrishnaChilaka picture RamakrishnaChilaka  路  3Comments