how to render a component by clicking in reactjs ?
I want to render a component by clicking?
Here's the code
I want to display that language component when I click button from that user.jsx and only render language component and disappear that user component
Language.jsx
User.jsx
js
import React from 'react';
import { User } from './User';
export function App() {
return (
<div>
<User />
</div>
);
}
Here's the code
I want to display that language component when I click button from that user.jsx and only render language component and disappear that user component
Language.jsx
User.jsx
js
import React from 'react';
import { User } from './User';
export function App() {
return (
<div>
<User />
</div>
);
}
