Skip to content

orkhan-huseyn/didact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal clone of React written for learning purposes

Didact is clone of React written by Roddigo Pombo You can find tutorial link here.

An example of what this library can do.

function Counter() {
  const [state, setState] = Didact.useState(1);
  return Didact.createElement(
    "h1",
    { onClick: () => setState(c => c + 1) },
    "Count: ",
    state
  );
}

const element = Didact.createElement(Counter);

const container = document.getElementById("root");
Didact.render(element, container);

This will render element into the DOM. Didact also support concurrent mode.

About

Minimal clone of React written for learning purposes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published