This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| export default function App() { | |
| return ( | |
| <div> | |
| <h1>Hello World! React app here !</h1> | |
| </div> | |
| ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php /* Template Name: My Component Template */ ?> | |
| <?php get_header(); ?> | |
| <h1>My Component Template</h1> | |
| <div id="root"></div> | |
| <?php get_footer(); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import './my-component.scss'; | |
| import App from './App.jsx'; | |
| ReactDOM.render(<App />, document.getElementById('root')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "wpwebpack", | |
| "version": "1.0.0", | |
| "description": "wp__webPack", | |
| "scripts": { | |
| "dev": "webpack -w -d --env=dev", | |
| "prod": "webpack -p --env=prod" | |
| }, | |
| "dependencies": { | |
| "bootstrap": "^5.0.0-alpha3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| const BrowserSyncPlugin = require('browser-sync-webpack-plugin'); | |
| const entryPoint = { | |
| my_component: './src/app/my-component/my-component.js' | |
| } | |
| const pathResolve = path.resolve(__dirname, './public'); | |
| buildConfig = (env) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM wordpress:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.1' | |
| services: | |
| # Wordpress | |
| wordpress: | |
| build: | |
| context: ./docker | |
| dockerfile: Dockerfile | |
| ports: |