Vojtech Miksu

Results 173 comments of Vojtech Miksu

> How would one go about using `extract-react-types-loader` to show TypeScript types? Would appreciate some pointers 🙂 First you [extract the types](https://github.com/uber/baseweb/blob/master/documentation-site/components/yard/config/button.ts#L5) from the component file. Then we [pass it](https://github.com/uber/baseweb/blob/master/documentation-site/components/yard/index.tsx#L153)...

> If I may pick your brain — what do you think about using the extracted TypeScript (or Flow) types as props to `react-view`? It's probably harder to do with...

Not sure what you mean. Can you provide some examples? `stateful: true` is to create a state while using the hook.

Code like this works ```jsx export default () => { const label = 'ok'; return ( {label} ); } ```

Hm, not sure what exactly your use-case is. If you are using "live-code only" setup, you can pass it through `initialCode`: https://react-view.netlify.app/?path=/story/useview--live-code-only If you are using knobs where the code...

You can probably just move `useStyles` into `Box` fn. It's not very pretty but should work?

Not enough to reproduce. It should generally work with SSR (like here: https://baseweb.design/components/button/)

Can you try `[email protected]`? When do you see it? When running `y install` ?

Can you provide full repro? It seems to be working in [CodeSandbox](https://codesandbox.io/s/i3dbn). And the [react-view/dist/es/index.js file](https://unpkg.com/[email protected]/dist/es/index.js) was correctly published.

The approach in #10 could work (might be more complicated due to JSX).