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

Added scriptType option to choose type for injected script #188

Closed Joshuabaker2 closed 7 years ago

Joshuabaker2 commented 7 years ago

Ability to have a custom type for the scriptType for the injected script.

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

samsel commented 7 years ago

@Joshuabaker2 This change has been published to npm.