ReScript bindings for React Helmet, a document head manager for React.
yarn add react-helmet rescript-react-helmet
Note that you need react
, react-dom
, @rescript/react
and react-helmet
as peer dependencies.
Adjust your bsconfig.js
by adding this package:
"bs-dependencies": [
"@rescript/react",
"rescript-react-helmet"
]
@react.component let make = () => <ReactHelmet defaultTitle="This is a title"> <style> {j` html { height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif; } `->React.string} </style> </ReactHelmet>Server-side static rendering
let helmet = ReactHelmet.renderStatic() let title = helmet.title->ReactHelmet.toString
Follow official documentation for all methods available.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4