Skip to content
orkhan-huseynPublic

About

Minimal clone of React written for learning purposes.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages