mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-27 05:28:43 +02:00
feat: code split & use react helmet
This commit is contained in:
parent
bf1e30dc52
commit
406106b67e
19 changed files with 241 additions and 146 deletions
15
lib/theme/Loading.js
Normal file
15
lib/theme/Loading.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import React from 'react';
|
||||
|
||||
export default props => {
|
||||
if (props.error) {
|
||||
return (
|
||||
<div>
|
||||
Error!{' '}
|
||||
<button type="button" onClick={props.retry}>
|
||||
Retry
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return <div>Loading...</div>;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue