paypal / react-engine

a composite render engine for universal (isomorphic) express apps to render both plain react views and react-router views
Apache License 2.0
1.45k stars 130 forks source link

Add option for custom script type for injected js. #189

Closed Joshuabaker2 closed 7 years ago

Joshuabaker2 commented 7 years ago

It would be nice to have the ability to have a custom type for the scriptType for the injected script.

My use case for needing this is so that it would play nicely with Google AMP, which requires all scripts to be of type application/ld+json.

PR: #188

Joshuabaker2 commented 7 years ago

Merged.