![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.
g2 is a 2D graphics javascript library based on the command pattern principle. Its main goal is to provide a simple API for users who want to generate 2D web graphics occasionally. So the API is minimal and easy to understand. The library is tiny, fast and renderer agnostic.
<canvas id="c" width="200", height="100"></canvas>
<script src="g2.js"></script>
<script>
const ctx = document.getElementById("c").getContext("2d"); // define context
g2().rec({x:40,y:30,b:120,h:40, // create g2 object, add rectangle
ls:"green",fs:"orange",lw:3}) // with style properties.
.exe(ctx); // draw to canvas.
</script>
See the API Reference for g2 for details.
Also see the API Reference for g2.ext and the API Reference for g2.mec.
Also available under
Check out the single page Cheat Sheet.
Also available under https://goessner.github.io/g2/api/sheet.pdf
Use the link https://cdn.jsdelivr.net/gh/goessner/g2/dist/g2.js for getting the latest commit as a raw file.
In HTML use ...
<script src="https://cdn.jsdelivr.net/gh/goessner/g2/dist/g2.js"></script>
Tests are found on the Github Page
g2 is licensed under the terms of the MIT License.
FAQs
g2 - a tiny 2d graphics command library
We found that g2d 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
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.