1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/static/src/js/app.js

18 lines
573 B
JavaScript

/* global $ */
import './events.js';
import React from 'react';
import ProjectImagesTypes from './components/index/project-images-types';
import ProjectImagesMain from './components/index/project-images-main';
import NavBar from './components/navbar/navbar';
if ($('body').hasClass('index')) { // Render components on index
React.render(<ProjectImagesTypes />, document.getElementById('project-images-types'));
React.render(<ProjectImagesMain />, document.getElementById('project-images-main'));
}
if ($('navbar')) {
React.render(<NavBar />, $('navbar')[0]);
}