Open r007 opened 5 days ago
Hi @r007, if you would like you could contribute by adding the recipe to https://github.com/microsoft/fluentui/tree/master/packages/react-components/recipes/src/recipes. otherwise I'll look into adding this in the coming weeks. Thanks so much for the detailed explanation!
Area
React Components (https://react.fluentui.dev)
What kind of documentation issue are you reporting?
Is there a specific documentation page you are reporting?
Developer --> Server-Side Rendering page
Description
Hi guys,
Can you please add my recipe for server-side rendering with remix-run framework to the documentation? It supports everything without issues. This is the only fully working solution on github. Most other repos contain an outdated code.
Demo / Starter template
https://github.com/r007/remix-fluentui-v9
Setting up Vite config for Remix
To make it work need to unwrap default imports from Fluent UI during SSR. Install CJS interop plugin for Vite:
Then open up
vite.config.ts
and paste this code:Setting up Fluent UI
1) Install the dependencies
2) Modify the
entry.server.tsx
file under your app folder with the following content:3) Modify the
entry.client.tsx
file under your app folder:4) Finally add your code to the
root.tsx
file in your app folder:Validations