![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@solid-primitives/cursor
Advanced tools
Two simple primitives for setting cursor css property reactively.
Two simple primitives for setting cursor css property reactively.
createElementCursor
- Set provided cursor to given HTML Element styles reactively.createBodyCursor
- Set selected cursor to body element styles reactively.npm install @solid-primitives/cursor
# or
yarn add @solid-primitives/cursor
# or
pnpm add @solid-primitives/cursor
createElementCursor
Set provided cursor to given HTML Element styles reactively.
It takes two arguments:
element
- HTMLElement or a reactive signal returning one. Returning falsy value will unset the cursor.cursor
- Cursor css property. E.g. "pointer", "grab", "zoom-in", "wait", etc.import { createElementCursor } from "@solid-primitives/cursor";
const target = document.querySelector("#element");
const [cursor, setCursor] = createSignal("pointer");
const [enabled, setEnabled] = createSignal(true);
createElementCursor(() => enabled() && target, cursor);
setCursor("help");
createBodyCursor
Set selected cursor to body element styles reactively.
It takes only one argument:
cursor
- Signal returing a cursor css property. E.g. "pointer", "grab", "zoom-in", "wait", etc. Returning falsy value will unset the cursor.import { createBodyCursor } from "@solid-primitives/cursor";
const [cursor, setCursor] = createSignal("pointer");
const [enabled, setEnabled] = createSignal(true);
createBodyCursor(() => enabled() && cursor());
setCursor("help");
See CHANGELOG.md
FAQs
Two simple primitives for setting cursor css property reactively.
The npm package @solid-primitives/cursor receives a total of 10,076 weekly downloads. As such, @solid-primitives/cursor popularity was classified as popular.
We found that @solid-primitives/cursor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.