Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-isomorphic-utils
Advanced tools
Toolkit for writing React apps that run on the client (CSR) and the server (SSR)
Toolkit for writing React apps that run on the client (CSR) and the server (SSR)
A collection of React hooks and components for writing isomorphic applications.
A component that prevents server side rendering of its' children.
// 'Client Only!' will only be rendered client side
<ClientOnly>
<div>Client Only!</div>
</ClientOnly>
ClientOnly
optionally accepts a placeholder
prop which will be rendered in place of the children on the server.
// 'Loading...' will be rendered on the server, and then 'Client Only!'
// will be rendered when JS boots on the client
<ClientOnly placeholder={<div>Loading...</div>}>
<div>Client Only!</div>
</ClientOnly>
Returns true when JS has booted on the client. This can be used to implement progressive enhancement.
const jsEnabled = useJSEnabled();
return <button disabled={jsEnabled} onClick={openModal} />;
Above, the button will initially render in a disabled state, and when JS boots the button will become interactive.
yarn add react-isomorphic-utils
Just trying things out or want to skip the build step? Use the unpkg URL:
<script src="https://unpkg.com/react-isomorphic-utils/dist/index.production.js"></script>
PR's and issues welcomed! For more guidance check out CONTRIBUTING.md
See the project's MIT License.
FAQs
Toolkit for writing React apps that run on the client (CSR) and the server (SSR)
The npm package react-isomorphic-utils receives a total of 12 weekly downloads. As such, react-isomorphic-utils popularity was classified as not popular.
We found that react-isomorphic-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.