![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.
A simple, modern web app framework
The following commands will create a hula
app and start the development server. Your app will be served at http://localhost:3000.
$ git clone https://github.com/nothingisdead/hula.git new_app
$ cd new_app
$ npm install
$ node
In development mode (default), the server will reload any open pages when it is restarted. nodemon
can be used to automatically restart the server on changes:
$ npm install -g nodemon
$ nodemon
src/components
.hula
comes with an example todo app, which is reproduced below.
if(typeof document !== 'undefined') {
document.title = 'Todo Example';
}
export default class {
constructor(app) {
this.app = app;
}
static get forward() {
return '/list';
}
// Return an html string (or a Promise)
render(child) {
// Use the this.app template tag to include components
return this.app`
<style>
.container {
display : flex;
align-items : center;
justify-content : center;
position : absolute;
top : 0;
right : 0;
bottom : 0;
left : 0;
}
.app {
box-shadow : 0 0 1px 0 black;
padding : 1rem;
width : 600px;
height : 400px;
text-align : center;
overflow : auto;
}
</style>
<div class="container">
<div class="app">
<h1>Todos:</h1>
<!-- Include the child component -->
${child || ''}
</div>
</div>
`;
}
};
const items = [
{
title : 'Create sample hula app',
done : true,
},
{
title : 'Add some todos',
done : false,
}
];
export default class {
constructor(app) {
this.app = app;
}
// Register event listeners for this component
register(component) {
// Handle deleting an item
component.addEventListener('change', (e) => {
if(e.target.type === 'checkbox') {
// Set the 'done' property
items[e.target.dataset.item].done = e.target.checked;
// Update the component
component.update();
}
});
// Handle creating an item
component.addEventListener('submit', (e) => {
// Prevent navigation
e.preventDefault();
// Add the item
items.push({
title : component.querySelector('input').value,
done : false,
});
// "Add some todos" is complete
items[1].done = true;
// Reset the form
e.target.reset();
// Upate the component
component.update();
});
}
render() {
return this.app`
<style>
.list {
display : inline-block;
padding : 0;
text-align : left;
list-style-type : none;
}
.list label {
cursor : pointer;
}
.list .done span {
text-decoration : line-through;
}
</style>
<form>
<input type="text" placeholder="Enter an item">
</form>
<ul class="list">
${items.map(({ title, done }, i) => `
<li${done ? ' class="done"' : ''}>
<label>
<input data-item="${i}" type="checkbox"${done ? ' checked' : ''}>
<span>${title}</span>
</label>
</li>
`)}
</ul>
`;
}
};
FAQs
A simple, modern web app framework
We found that hula 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.