INNER CODE UNIT · JavaScript

API

facebookresearch/mmf · website/src/pages/api_redirect/index.js:13

const API = () => {
  const history = useHistory();
  history.push('/');
  return (
    <BrowserOnly fallback={<p>Some Fallback Content</p>}>
      {() => {
        window.location.href = '/api';
      }}
    </BrowserOnly>
  );
};

export default API;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…