mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-06-20 04:48:30 -06:00
PR-753737: moviendo toda la logica de front-end a src.
This commit is contained in:
5
src/frontend/components/App.jsx
Normal file
5
src/frontend/components/App.jsx
Normal file
@ -0,0 +1,5 @@
|
||||
import React from 'react';
|
||||
|
||||
const App = () => <h1>Hello React!</h1>
|
||||
|
||||
export default App;
|
6
src/frontend/index.js
Normal file
6
src/frontend/index.js
Normal file
@ -0,0 +1,6 @@
|
||||
import React from 'react';
|
||||
import ReactDom from 'react-dom';
|
||||
import App from './components/App';
|
||||
import './styles/global.sass';
|
||||
|
||||
ReactDom.render(<App />, document.getElementById('app'));
|
6
src/frontend/styles/global.sass
Normal file
6
src/frontend/styles/global.sass
Normal file
@ -0,0 +1,6 @@
|
||||
$base-color: #c6538c
|
||||
$color: rgba(black, 0.88)
|
||||
|
||||
body
|
||||
background-color: $base-color
|
||||
color: $color
|
Reference in New Issue
Block a user