Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Usage with react + server-side rendering #52

Open
axelson opened this issue Mar 22, 2017 · 4 comments
Open

Usage with react + server-side rendering #52

axelson opened this issue Mar 22, 2017 · 4 comments

Comments

@axelson
Copy link

axelson commented Mar 22, 2017

Does this library support server-side rendering with React? I can't find any usage examples.

@dwilt
Copy link

dwilt commented Mar 31, 2017

I would love to see this example as well

@phyllisstein
Copy link

I hate to be That Guy, but after struggling for a while to adapt this and svgo-webpack-loader to React I finally landed on react-svg-loader, which seems a better fit for this use-case.

@GearoidCollins
Copy link

Hi was having a similar issue when using SSR for svgs - "cant resolve module".
After trying many different manual processes I came across this:

sunesimonsen-babel-plugin-inline-react-svg

Add it to your babel config along with svg-inline-loader in you webpack config and it resolved the issue for me...

Hopefully save someone else hours

@karlwills
Copy link

@GearoidCollins Could you please post your webpack and babel configs? I'm trying this solution but it's still not working for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants