I want to use React as a library natively on the browser without any additional tooling such as webpack or Babel. In development, I am tired of having to transpile my React code into regular JavaScript code. This would also let me create a React application that benefits from ES6 modules, as they are also supported natively and do not require any additional tooling such as webpack or Babel.
I have looked into React.createElement but it is not very user friendly. Here is an example of React.createElement
React.createElement('div', null, 'Hello');
// <div>Hello</div>
I would like to use all of the features of React including hooks useState
, useEffect
, etc. Is there a viable solution to use React without needing to transpile or bundle?