React Hooks and Suspense-ready Components for Web API's and elements

Web API's turned into React Hooks and Suspense-friendly React components. #useThePlatform
> Note: React 16.8+ is required for Hooks.
``sh`
npm i the-platform --save
`sh`
yarn add the-platform
export default App;
`
#### Props
- src: string
- anything else you can pass to a
`js
import React from 'react';
import { Video } from 'the-platform';
function App() {
return (
export default App;
`
#### Props
- src: string
- anything else you can pass to a
`js
import React from 'react';
import { Audio } from 'the-platform';
function App() {
return (
export default App;
`
Preload a resource with . For more information check out MDN or the Google Developer Blog.
#### Props
- href: stringas: string
- - resource type
`js
import React from 'react';
import { Preload, Script } from 'the-platform';
function App() {
return (
export default App;
`
Lazy load a stylesheet.
#### Props
- href: string
`js
import React from 'react';
import { Stylesheet } from 'the-platform';
function App() {
return (
export default App;
``
- Jared Palmer
- Jack Cross
- Nathan Force
- react-fns
- AOL.
---
MIT License