K
K
Ksyusha2017-05-20 23:41:38
JavaScript
Ksyusha, 2017-05-20 23:41:38

How to use jquery (append) and jsx (react)?

There is this code:

import Chat from './Chat';
import $ from "jquery";

.......

function1{
      var div = '<div id="div1">' +
                        '</div>' +

}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Saveliev, 2021-03-29
@sergej_saveljev

const element = (
    <div>
      <h1>Hello, world!</h1>
      <h2>It is {new Date().toLocaleTimeString()}.</h2>
    </div>
  );
  ReactDOM.render(element, document.getElementById('root'));

Example taken from here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question